36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
server_name jellyfin.home.hrajfrisbee.cz;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/gitea.home.hrajfrisbee.cz/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/gitea.home.hrajfrisbee.cz/privkey.pem;
|
|
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;
|
|
ssl_prefer_server_ciphers off;
|
|
|
|
|
|
# Security headers for media streaming
|
|
add_header X-Frame-Options "SAMEORIGIN";
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
add_header X-Content-Type-Options "nosniff";
|
|
|
|
# Increase body size for high-res movie posters
|
|
client_max_body_size 20M;
|
|
|
|
location / {
|
|
# Proxy to your Synology or VM IP and Jellyfin port (default 8096)
|
|
proxy_pass http://192.168.0.2:8096;
|
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
|
|
# Disable buffering for smoother streaming
|
|
proxy_buffering off;
|
|
}
|
|
}
|