Skip to content

Commit

Permalink
Update https section into README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Nov 8, 2022
1 parent 162b0e3 commit 0c30c8c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 * * * /<path_to_your_docker_files>/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
Expand All @@ -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
Expand Down

0 comments on commit 0c30c8c

Please sign in to comment.