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

Make use of environment variables within nginx config #68

Open
Raruto opened this issue Sep 8, 2022 · 0 comments · May be fixed by #99 or #77
Open

Make use of environment variables within nginx config #68

Raruto opened this issue Sep 8, 2022 · 0 comments · May be fixed by #99 or #77
Labels
refactoring Anything which could result in a API change

Comments

@Raruto
Copy link
Collaborator

Raruto commented Sep 8, 2022

As per v3.4, some of these values must be updated manually within the following files:

  • /config/nginx/django.conf
  • /config/nginx/django_conf.ssl

For example:

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# NOTE: change server_name according to your real hostname
server_name dev.g3wsuite.it;

it might just be read from the .env file:

# Public hostmane
WEBGIS_PUBLIC_HOSTNAME=dev.g3wsuite.it

Doing so may also make it easier to set that variable for local development, eg:

WEBGIS_PUBLIC_HOSTNAME=localhost

More info:

@Raruto Raruto added the refactoring Anything which could result in a API change label Sep 22, 2022
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
1 participant