|
|
|
@ -1,7 +1,7 @@ |
|
|
|
# http > https |
|
|
|
server { |
|
|
|
listen 80; |
|
|
|
server_name ikea-foundation-dice.onc.dk; |
|
|
|
server_name dice.ikeafoundation.org ikea-foundation-dice.onc.dk; |
|
|
|
|
|
|
|
root /home/mattias/www/ikea-foundation-dice/public; |
|
|
|
|
|
|
|
@ -11,10 +11,27 @@ server { |
|
|
|
} |
|
|
|
|
|
|
|
location / { |
|
|
|
return 301 https://ikea-foundation-dice.onc.dk$request_uri; |
|
|
|
return 301 https://dice.ikeafoundation.org$request_uri; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
# https |
|
|
|
server { |
|
|
|
listen 443 ssl; |
|
|
|
http2 on; |
|
|
|
|
|
|
|
server_name ikea-foundation-dice.onc.dk; |
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/ikea-foundation-dice.onc.dk/fullchain.pem; # managed by Certbot |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/ikea-foundation-dice.onc.dk/privkey.pem; # managed by Certbot |
|
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot |
|
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot |
|
|
|
|
|
|
|
location / { |
|
|
|
return 301 https://dice.ikeafoundation.org$request_uri; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https |
|
|
|
@ -22,10 +39,10 @@ server { |
|
|
|
listen 443 ssl; |
|
|
|
http2 on; |
|
|
|
|
|
|
|
server_name ikea-foundation-dice.onc.dk; |
|
|
|
server_name dice.ikeafoundation.org; |
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/ikea-foundation-dice.onc.dk/fullchain.pem; # managed by Certbot |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/ikea-foundation-dice.onc.dk/privkey.pem; # managed by Certbot |
|
|
|
ssl_certificate /etc/letsencrypt/live/dice.ikeafoundation.org/fullchain.pem; # managed by Certbot |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/dice.ikeafoundation.org/privkey.pem; # managed by Certbot |
|
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot |
|
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot |
|
|
|
|
|
|
|
|