layne: open jellyfin to the world
This commit is contained in:
parent
69a316758b
commit
00dc6f1cf3
1 changed files with 23 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue