-
Notifications
You must be signed in to change notification settings - Fork 46
docs: clarify Docker Helper vs localhost URLs in local setup #1994
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
base: main
Are you sure you want to change the base?
docs: clarify Docker Helper vs localhost URLs in local setup #1994
Conversation
mrjones-plip
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work here - thank you!
Requesting to changes to get this tidied up a bit.
mrjones-plip
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @najuna-brian ! I think maybe reducing the URL to have the localhost IP and just requesting they update the port might be easier. I've made some suggestions to this end.
|
|
||
| {{< callout type="tip" >}} | ||
| Docker Helper users: copy the exact `...local-ip.medicmobile.org:PORT` URL that the helper prints and use it in all `cht` commands. With this URL, you do not need `--accept-self-signed-certs` because the certificate is valid. | ||
| {{< /callout >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this call out is a great idea! However, I think it will be more contextual when it's directly next two the your-local-ip type URLs. Let's remove it here and add an inline call out below:
| {{< callout type="tip" >}} | |
| Docker Helper users: copy the exact `...local-ip.medicmobile.org:PORT` URL that the helper prints and use it in all `cht` commands. With this URL, you do not need `--accept-self-signed-certs` because the certificate is valid. | |
| {{< /callout >}} |
|
|
||
| ```shell | ||
| cht --url=https://medic:password@<your-local-ip.medicmobile.org:PORT> csv-to-docs upload-docs | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ```shell | |
| cht --url=https://medic:password@<your-local-ip.medicmobile.org:PORT> csv-to-docs upload-docs | |
| ``` | |
| Be sure to update the `<PORT>` to be correct. It will be a 5 digits number like `10443`. The full URL is show right after you [start a docker helper instance]({{< relref "/hosting/cht/app-developer#cht-docker-helper" >}}). | |
| ```shell | |
| cht --url=https://medic:password@127-0-0-1.local-ip.medicmobile.org:<PORT> csv-to-docs upload-docs | |
| ``` |
| ```shell | ||
| # accept-self-signed-certs bypasses normal SSL certificate verification. This is necessary when connecting to a local CHT instance. | ||
| cht --url=https://medic:password@localhost --accept-self-signed-certs | ||
| cht --url=https://medic:password@<your-local-ip.medicmobile.org:PORT> compile-app-settings upload-app-settings | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ```shell | |
| # accept-self-signed-certs bypasses normal SSL certificate verification. This is necessary when connecting to a local CHT instance. | |
| cht --url=https://medic:password@localhost --accept-self-signed-certs | |
| cht --url=https://medic:password@<your-local-ip.medicmobile.org:PORT> compile-app-settings upload-app-settings | |
| ``` | |
| Be sure to update the `<PORT>` to be correct. It will be a 5 digits number like `10443`. The full URL is show right after you [start a docker helper instance]({{< relref "/hosting/cht/app-developer#cht-docker-helper" >}}). | |
| ```shell | |
| cht --url=https://medic:password@127-0-0-1.local-ip.medicmobile.org:<PORT> csvcompile-app-settings upload-app-settings | |
| ``` |
Closes #1945
Description
Clarifies when to use the Docker Helper URL (
…local-ip.medicmobile.org:PORT, valid TLS) vshttps://localhost(self-signed) in local setup andcht-confexamples. Adds a tip and tabbed examples to prevent URL/cert errors.License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.