Spotter-VM/basic/etc/nginx/conf.d/default.conf

18 lines
339 B
Plaintext
Raw Normal View History

server {
2018-01-08 15:27:29 +01:00
listen [::]:80 default_server ipv6only=off;
return 301 https://$host$request_uri;
}
server {
2018-01-08 15:27:29 +01:00
listen [::]:443 ssl http2 default_server ipv6only=off;
add_header Strict-Transport-Security "max-age=31536000;";
root /srv/portal;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}