hostnames and user settings

This commit is contained in:
Noah Masur
2025-02-08 12:58:06 -05:00
parent 9c5de4c54f
commit 61b1ceffd9
45 changed files with 253 additions and 275 deletions

View File

@ -10,6 +10,7 @@
let
cfg = config.nmasur.presets.services.jellyfin;
hostnames = config.nmasur.settings.hostnames;
in
{
@ -25,7 +26,7 @@ in
{
match = [
{
host = [ config.hostnames.stream ];
host = [ hostnames.stream ];
path = [ "/metrics*" ];
}
];
@ -38,7 +39,7 @@ in
}
# Allow access to normal route.
{
match = [ { host = [ config.hostnames.stream ]; } ];
match = [ { host = [ hostnames.stream ]; } ];
handle = [
{
handler = "reverse_proxy";
@ -49,7 +50,7 @@ in
];
# Configure Cloudflare DNS to point to this machine
services.cloudflare-dyndns.domains = [ config.hostnames.stream ];
services.cloudflare-dyndns.domains = [ hostnames.stream ];
# Create videos directory, allow anyone in Jellyfin group to manage it
systemd.tmpfiles.rules = [