22 lines
364 B
Plaintext
22 lines
364 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000;";
|
|
|
|
root /srv/portal;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
include /etc/nginx/apps-enabled/*;
|
|
}
|