opengisch / qfieldcloud

QFieldCloud allows seamless synchronization of your field data with your spatial infrastructure with change tracking, team management and online-offline work capabilities in QField.
https://qfield.cloud
MIT License
102 stars 44 forks source link

Fix init_letsencrypt.sh CONFIG_PATH #925

Closed dddpt closed 2 months ago

dddpt commented 2 months ago

Problem for nginx cert update was init_letsencrypt.sh uses CONFIG_PATH=./conf, but qfieldcloud-nginx config has been moved to the docker-nginx folder.

Hence changing CONFIG_PATH=./ by default and completing the subsequent paths in init_letsencrypt.sh

duke-nyuki commented 2 months ago

Task linked: QF-4050 fix init_letsencrypt.sh CONFIG_PATH

dddpt commented 2 months ago

Should not also the docker-compose.yml volume mount be included in the fix somehow?

Good question! I tested and it works as is.

Inferring from the other docker-compose.override.yml, it seems that docker-compose chooses as its working folder the position of the first docker-compose.yml file you give in the COMPOSE_FILE env var.

So no change to docker-compose.yml needed.

dddpt commented 2 months ago

tested on staging :ok_hand: