Clarification on Ansible DHIS2 Conf. and API Endpoint

Hi everyone,

I have a few questions that need honest and quick answers:

  1. After installing DHIS2 with Ansible tools, you will agree with me that the DHIS database password needs to be changed for security reasons. Changing it using either LXC or psql is not enough—we also need to update the same password in dhis.conf. Where is the dhis2.conf or dhis.conf file located so that we can change the password setting?

  2. If you want to use DHIS2 as a patient data repository and have developed an ETL application to aid bulk imports via the DHIS2 import API, your DHIS2 is hosted on an Ubuntu web server (for example, https://titoserver.org). What should the API endpoint be? Because when we try something like ``` https://titoserver.org/dhis/api/tracker`` ````…`, it returns a “post error.”

    We thought either the Nginx proxy timeout was causing the issue or something else.

I would appreciate it if you could provide more information on these two questions as soon as possible.

Best regards,
Abraham
(ab.bosun@outlook.com)

Thank you.

On the first question, unless otherwise customized, the conf file is usually at /opt/dhis/. For the second question, read the documentation for the version of the instance for a more accurate endpoint.

1 Like

Thank you so much. We were able to surmount the issue with the location of dhis.conf and the URL for posting data to the DHIS2 import API. This is really appreciated.

Thank you

1 Like