-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api improvements #1470
Api improvements #1470
Conversation
… them, like we do in the regular UI. Also remove unneeded quotes
Any idea where I can put this code to split ZM_DB_HOST?
Here's an example, I found a solution, I'll create a pull request based on your branch here. |
PR for API is here. This is ready for testing / merge. |
@connortechnology checkout @josh4trunks changes and merge to your repo if you want them in this one, or let me know to let this one in as is. |
Support user defined MySQL Port/Socket in API
|
Seems to work with a default build (default zmuser, zmpass, sql port). Note that this will require an API documentation update to specify it is no longer necessary to manually populate custom mysql credentials into the database.php file. Other than the README for Fedora & CentOS, I don't know where that documentation is. |
=] |
I think this also means this file doesn't have to have cmake substitutions... |
You might want to update this doc to reflect this convenient change. It still suggests that the db user/pass is stored in api/app/Config/database.php. |
How do we update the documentation? As of April 20, 2017 the PDF @tendonut linked is still outdated.
|
If you are referring to our readtehdocs documentation, there should be a link "Edit on Github" at the top right of the page, which will take you to proper file to edit under this folder: |
@knnniggett sounds good, I made the changes I mentioned and will submit a PR. I'm thinking I'll also add a note to zm.conf of the possible formats of ZM_DB_HOST, mentioned here. |
This simplifies the configuration of the API by pulling the db connection info from zm.conf.