Makefile and extra conf
This commit is contained in:
parent
18cd60ded3
commit
b8787941b1
2 changed files with 32 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
31
ansible/templates/web/extra-public-health.conf
Normal file
31
ansible/templates/web/extra-public-health.conf
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue