Hi, @mrjones I have a simple question regarding this topic as we discussed a couple of months back, I used sudo
to create and run a new project as shown below:
smhuli@HPx:~/Documents/CHT-Projects/docker-helper-4.x$ sudo ./cht-docker-compose.sh config_dtree_4_4.env
homedir: /root/.medic/cht-docker/config_dtree_4_4-dir
[+] Running 1/1
✔ Container config_dtree_4_4-dir-cht-upgrade-service-1 Started 0.0s
Starting project "config_dtree_4_4". First run takes a while. Will try for up to five minutes.....2024/09/09 14:51:38 [warn] 63#63: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:37
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:37
2024/09/09 14:51:38 [warn] 63#63: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:38
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:38
2024/09/09 14:51:38 [notice] 63#63: signal process started
--------------------------------------------------------
Success! "config_dtree_4_4" is set up:
https://192-168-124-76.local-ip.medicmobile.org:10443/ (CHT)
https://192-168-124-76.local-ip.medicmobile.org:10443/_utils/ (Fauxton)
Login: medic
Password: password
--------------------------------------------------------
Start existing project
./cht-docker-compose.sh ENV-FILE.env
Stop and keep project:
./cht-docker-compose.sh ENV-FILE.env stop
Stop and destroy all project data:
./cht-docker-compose.sh ENV-FILE.env destroy
https://docs.communityhealthtoolkit.org/apps/guides/hosting/4.x/app-developer/
Have a great day!
It always finishes so fast when using sudo
to create a new project compared to when I’m not using, so even when updating the cert it requires to use root user privileges for it to show below message, i.e
smhuli@HPx:~/Documents/CHT-Projects/cht-core$ sudo ./scripts/add-local-ip-certs-to-docker-4.x.sh config_dtree_4_4-nginx-1
config_dtree_4_4-nginx-1
If just container name is shown above, a fresh local-ip.medicmobile.org certificate was downloaded fresh local-ip.medicmobile.org.
However, after doing so, the web page remains insecure.
What might be the issue? I prefer using sudo
for my initial projects to start faster because I tried to initiate a new project without sudo
failing(I tried more than 10 times, but no containers were created).