## HTTPS Deployment with your own certificates (advanced)

For HTTPS deployment with your own certicates include `fullchain.pem` and `privkey.pem` into the `docker/nginx/https-owncert/certificates/` directory. 
If the format of the keys or selection of keys does not suffice, it's adviced to modify the `nginx.conf.template` file and change the related configuration in line `:32-33`.
Docker compose mounts the `./certificates` folder as `/etc/nginx/certificates/` in the Nginx container.
Name of the nginx configuration file is intentionally named as such due to `01-substitute-env.sh` script which substitutes `INJECT_DOMAIN` variable with environment variable value.

Please ensure that:
- `INJECT_DOMAIN` is setup to your desired hostname in the `.env` file enclosed in the `docker/nginx/https-owncert` directory
- `INJECT_SECRET_KEY` is changed to a truly random string of characters of at least 50 characters long
- `01-substitute-env.sh` is executable via `chmod +x 01-substitute-env.sh`.

Then you may execute `docker compose up -d` and your deployment is up and running