Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for env variables within nginx.conf.template #99

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

Raruto
Copy link
Collaborator

@Raruto Raruto commented May 19, 2023

Improves #97 and supersedes: #77

  • rename config/nginx/nginx.conf into config/nginx/nginx.conf.template
  • expose (envsubst) the following .env variables into nginx.conf.template:
    • WEBGIS_PUBLIC_HOSTNAME
    • WEBGIS_ADMIN_EMAIL (new)
    • WEBGIS_SSL (new)
  • new folder config/nginx/conf/
  • simplify README.md steps related to HTTPS additional setup
  • refactor run_certbot.sh (ref: #77)

Closes: #67, closes: #68

- rename `config/nginx/nginx.conf` into `config/nginx/nginx.conf.template`
- expose (envsubst) the following `.env` variables into `nginx.conf.template`:
  - `WEBGIS_PUBLIC_HOSTNAME`
  - `WEBGIS_ADMIN_EMAIL` (new)
  - `WEBGIS_SSL` (new)
- new folder `config/nginx/conf/`
- simplify `README.md` steps related to HTTPS additional setup
- refactor `run_certbot.sh` (ref: #77)
-
@Raruto Raruto added the refactoring Anything which could result in a API change label May 19, 2023
@Raruto Raruto changed the title Nginx templates Add support for env variables within nginx.conf.template May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Anything which could result in a API change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make use of environment variables within nginx config Remove /config/_nginx/django_conf.ssl
1 participant