Add navidrome host
This commit is contained in:
parent
e6710cc8d9
commit
7cd261f850
7 changed files with 100 additions and 3 deletions
24
config/hosts/navidrome/nginx.nix
Normal file
24
config/hosts/navidrome/nginx.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ ... }: {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
user = "navidrome";
|
||||
virtualHosts."navidrome.grzb.de" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
listen = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 80;
|
||||
}
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 443;
|
||||
ssl = true;
|
||||
}
|
||||
];
|
||||
locations."/" = {
|
||||
proxyPass = "http://unix:/run/navidrome/navidrome.socket";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue