2017-06-25 20:49:10 +02:00
|
|
|
server {
|
2018-01-08 15:27:29 +01:00
|
|
|
listen [::]:80 default_server ipv6only=off;
|
2017-08-31 19:45:20 +02:00
|
|
|
return 301 https://$host$request_uri;
|
2017-06-25 20:49:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2018-01-08 15:27:29 +01:00
|
|
|
listen [::]:443 ssl http2 default_server ipv6only=off;
|
2017-06-25 20:49:10 +02:00
|
|
|
|
2017-06-26 15:17:55 +02:00
|
|
|
add_header Strict-Transport-Security "max-age=31536000;";
|
2017-06-25 20:49:10 +02:00
|
|
|
|
|
|
|
root /srv/portal;
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
|
|
|
}
|