Enable SSL
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user