🔧 put nginx in front of navidrome
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 9m55s
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 9m55s
This commit is contained in:
parent
d85780c563
commit
f6427e5237
2 changed files with 21 additions and 0 deletions
|
@ -28,6 +28,7 @@ let
|
||||||
"photoprism.orbi" = hosts.orbi;
|
"photoprism.orbi" = hosts.orbi;
|
||||||
# chungus
|
# chungus
|
||||||
"video.chungus" = hosts.chungus;
|
"video.chungus" = hosts.chungus;
|
||||||
|
"music.chungus" = hosts.chungus;
|
||||||
"de.tts.chungus" = hosts.chungus;
|
"de.tts.chungus" = hosts.chungus;
|
||||||
"en.tts.chungus" = hosts.chungus;
|
"en.tts.chungus" = hosts.chungus;
|
||||||
"flix.chungus" = hosts.chungus;
|
"flix.chungus" = hosts.chungus;
|
||||||
|
|
|
@ -22,4 +22,24 @@
|
||||||
settings.MusicFolder = "/media/arr/lidarr";
|
settings.MusicFolder = "/media/arr/lidarr";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts."music.${config.networking.hostName}.private" = {
|
||||||
|
serverAliases = [
|
||||||
|
"music.${config.networking.hostName}.wg0"
|
||||||
|
"music.ingolf-wagner.de"
|
||||||
|
];
|
||||||
|
locations."/" = {
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyWebsockets = true;
|
||||||
|
proxyPass = "http://localhost:${toString config.services.navidrome.settings.Port}";
|
||||||
|
extraConfig = ''
|
||||||
|
allow ${config.tinc.private.subnet};
|
||||||
|
allow ${config.wireguard.wg0.subnet};
|
||||||
|
deny all;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue