hosts/vps1: re-enable jellyfin
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m28s

This commit is contained in:
2025-11-02 19:09:59 +00:00
parent d71ffd36ee
commit 09f1511f97

View File

@@ -130,15 +130,25 @@ in
"jellyfin.vimium.com" = { "jellyfin.vimium.com" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
extraConfig = nginxEdgeHeaders + '' extraConfig = nginxErrorPages + nginxEdgeHeaders;
error_page 503 /maintenance.html;
'';
locations."/maintenance.html" = {
root = "/var/www/html";
extraConfig = "internal; default_type text/html;";
};
locations."/" = { locations."/" = {
return = "503"; proxyPass = "http://jellyfin";
extraConfig = ''
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
'';
};
locations."/metrics" = {
return = "404";
}; };
}; };