sphc domain setup

This commit is contained in:
Oleg Lavrovsky 2018-06-01 11:15:34 +02:00
parent d8a7b307f3
commit 823e383ae3
3 changed files with 4 additions and 2 deletions

View file

@ -11,6 +11,8 @@ nginx_worker_connections: 1024
domain: "{{ vault_domain }}"
allowed_domains: "public-health.ch,www.public-health.ch,sphc.ch,www.sphc.ch"
django_email_key: "{{ vault_django_email_key }}"
django_email_domain: "{{ vault_django_email_domain }}"
django_email_from: "{{ vault_django_email_from }}"

View file

@ -13,7 +13,7 @@ web:
- "5000:5000"
environment:
- DJANGO_SETTINGS_MODULE={{ django_project_name }}.settings.production
- ALLOWED_HOSTS={{ domain }},www.{{ domain }},{{ ipv4_addresses|join(':5000,') }}
- ALLOWED_HOSTS={{ allowed_domains }},{{ ipv4_addresses|join(':5000,') }}
- SECRET_KEY={{ django_secret_key }}
- MAILGUN_KEY={{ django_email_key }}
- MAILGUN_DOMAIN={{ django_email_domain }}

View file

@ -27,7 +27,7 @@ server {
# Conference site
server {
listen 80;
server_name ph-gamma-kzql0g21.datalets.ch;
server_name sphc.ch www.sphc.ch;
client_max_body_size 16M;