From 0c30c8c5cc06a846481bfeae54f3c5955a81a35b Mon Sep 17 00:00:00 2001 From: wlorenzetti Date: Tue, 8 Nov 2022 09:03:16 +0100 Subject: [PATCH] Update https section into README.md --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8a8888ed..06d772d2 100644 --- a/README.md +++ b/README.md @@ -97,13 +97,12 @@ the conf file will be mounted into docker container at runtime to PGSERVICEFILE To active https with LetsEncrypt just follow the following instructions: -- uncomment ssl section within `config/nginx/django.conf` +- uncomment ssl section within `config/nginx/django.conf.template` - update `WEBGIS_PUBLIC_HOSTNAME` environment variable within the `.env` file -- launch `./run_certbot.sh` -- restart compose -- make sure the certs are renewed by adding a cron job with `crontab -e` and add the following line: +- launch `sudo ./run_certbot.sh` +- restart compose: `docker compose down && docker compose up -d` +- make sure the certs are renewed by adding a cron job with `sudo crontab -e` and add the following line: `0 3 * * * //run_certbot.sh` -- if you disabled HTTPS, you can comment the ssl section within `config/nginx/django.conf` and restart the Docker compose to finally enable HTTPS ### Volumes @@ -117,7 +116,7 @@ This can be done by modifying the `.env` file. ### First time setup -- log into the application web administation panel using default credentials (_admin/admin_) +- log into the application web administration panel using default credentials (_admin/admin_) - change the password for the admin user and for any other example user that may be present ### Caching