feat: enable websockets support on jellyfin

This commit is contained in:
Bladesy 2025-01-05 20:24:26 +00:00
parent 3b78176d1e
commit 39043efd37

View File

@ -268,18 +268,35 @@
"jellyfin.dylanblades.com" = { "jellyfin.dylanblades.com" = {
forceSSL = true; forceSSL = true;
useACMEHost = "dylanblades.com"; useACMEHost = "dylanblades.com";
locations."/" = { locations = {
proxyPass = "http://localhost:8096"; "/" = {
extraConfig = '' proxyPass = "http://localhost:8096";
client_max_body_size 20M; extraConfig = ''
proxy_set_header Host $host; client_max_body_size 20M;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Protocol $scheme;
proxy_buffering off; proxy_set_header X-Forwarded-Host $http_host;
''; proxy_buffering off;
'';
};
"/socket" = {
proxyPass = "http://localhost:8096";
extraConfig = ''
client_max_body_size 20M;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
'';
};
}; };
}; };
}; };