Add Jellyfin's Nginx config on camelot
This commit is contained in:
parent
cbbba40a01
commit
ac727a1e1d
|
@ -1,6 +1,19 @@
|
|||
{ extraInfo, ... }:
|
||||
{
|
||||
services.jellyfin.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
8096
|
||||
];
|
||||
services.nginx.virtualHosts.${extraInfo.jellyfinURI} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:8096";
|
||||
};
|
||||
|
||||
"/socket" = {
|
||||
proxyPass = "http://localhost:8096";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue