2017-06-02 10:52:15 +00:00
|
|
|
#{{ ansible_managed }}
|
|
|
|
|
2018-06-02 12:27:25 +00:00
|
|
|
# Web archive and other special configurations
|
2017-06-02 10:52:15 +00:00
|
|
|
|
|
|
|
server {
|
|
|
|
server_name www-old.{{ domain }};
|
2018-07-13 09:42:34 +00:00
|
|
|
listen 443 ssl;
|
|
|
|
return 301 http://$server_name$request_uri;
|
2018-06-02 13:01:29 +00:00
|
|
|
}
|
2018-07-13 09:42:34 +00:00
|
|
|
|
2018-06-02 13:01:29 +00:00
|
|
|
server {
|
|
|
|
server_name www-old.{{ domain }};
|
2018-07-13 09:42:34 +00:00
|
|
|
listen 80;
|
2017-06-02 10:52:15 +00:00
|
|
|
index index.html index.htm;
|
|
|
|
root {{ archive_dir }};
|
2018-06-02 12:37:25 +00:00
|
|
|
add_after_body /archive-message.html;
|
|
|
|
location = /archive-message.html {
|
|
|
|
root {{ release_dir }}/static/org/;
|
|
|
|
}
|
2017-06-02 10:52:15 +00:00
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
|
|
|
}
|