layne: open jellyfin to the world

This commit is contained in:
Adithya 2024-10-11 22:22:23 +05:30
parent 69a316758b
commit 00dc6f1cf3
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -1,6 +1,7 @@
_: _:
let let
inherit (import ../../../shared/caddy-helpers.nix) logFormat; inherit (import ../../../shared/caddy-helpers.nix) logFormat;
domainName = "watch.acomputer.lol";
in in
{ {
services = { services = {
@ -18,8 +19,30 @@ in
reverse_proxy 127.0.0.1:8096 reverse_proxy 127.0.0.1:8096
''; '';
}; };
"${domainName}" = {
logFormat = logFormat domainName;
extraConfig = ''
reverse_proxy 127.0.0.1:8096
'';
};
}; };
}; };
frp.settings.proxies = [
{
name = "http.${domainName}";
type = "http";
customDomains = [ domainName ];
localPort = 80;
transport.useCompression = true;
}
{
name = "https.${domainName}";
type = "https";
customDomains = [ domainName ];
localPort = 443;
transport.useCompression = true;
}
];
jellyfin = { jellyfin = {
enable = true; enable = true;
dataDir = "/mnt/data/Jellyfin"; dataDir = "/mnt/data/Jellyfin";