Makefile and extra conf

This commit is contained in:
Oleg Lavrovsky 2020-05-27 15:42:22 +02:00
parent 18cd60ded3
commit b8787941b1
2 changed files with 32 additions and 1 deletions

View File

@ -51,7 +51,7 @@ compress:
docker-compose exec web ./manage.py collectstatic --noinput -i media
docker-compose exec web ./manage.py compress
release: rebuild compress run
release: rebuild run compress restart
reindex:
docker-compose exec web ./manage.py update_index

View File

@ -0,0 +1,31 @@
# Web archive and other special configurations
server {
server_name www-old.public-health.ch;
listen 443 ssl;
return 301 http://$server_name$request_uri;
}
server {
server_name www-old.public-health.ch;
listen 80;
index index.html index.htm;
root /opt/www-old;
add_after_body /archive-message.html;
location = /archive-message.html {
root /opt/publichealth/static/org/;
}
location / {
try_files $uri $uri/ =404;
}
}
# Conference subdomain
server {
server_name conference.public-health.ch;
listen 443 ssl;
return 301 https://sphc.ch;
}
server {
server_name conference.public-health.ch;
listen 80;
return 301 https://sphc.ch;
}