Enable SSL

This commit is contained in:
2021-04-26 23:54:10 +02:00
parent 4907cdfd99
commit 765e9e5a47
5 changed files with 105 additions and 0 deletions

View File

@ -3,12 +3,23 @@ server {
server_name "jellyfin.{{ base_domain }}";
set $jellyfin {{ server_ip }};
#resolver 127.0.0.1 valid=30;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name "jellyfin.{{ base_domain }}";
set $jellyfin {{ server_ip }};
# Security/XSS Mitigation Headers
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
location = / {
return 302 https://$host/web/;
}
location / {
proxy_pass http://$jellyfin:8096;
proxy_set_header Host $host;