ADD : nginx RP for navidrome

FIX: config navidrome
alacritty
Alexandre LUCAZEAU 2022-09-16 08:57:27 +00:00
parent a4f3ff5b9d
commit eee1f76df3
3 changed files with 11 additions and 7 deletions

View File

@ -22,7 +22,15 @@ services.nginx = {
forceSSL = true; forceSSL = true;
## LetsEncrypt ## LetsEncrypt
enableACME = true; enableACME = true;
}; };
"music.atlanticaweb.fr" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.navidrome.settings.Port}/";
proxyWebsockets = true;
};
};
}; };
}; };

View File

@ -12,11 +12,6 @@ in
root * ${caddyDir} root * ${caddyDir}
} }
https://music.atlanticaweb.fr {
encode gzip
reverse_proxy http://192.168.10.114:4533
}
https://git.atlanticaweb.fr { https://git.atlanticaweb.fr {
encode gzip encode gzip
reverse_proxy http://localhost:3001 reverse_proxy http://localhost:3001

View File

@ -1,10 +1,11 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
services.navidrome = { services.navidrome = {
enable = true; # Enable Gitea enable = true;
settings = { settings = {
MusicFolder = "/var/lib/nextcloud/data/alexandre/files/Musique/"; MusicFolder = "/var/lib/nextcloud/data/alexandre/files/Musique/";
Address = "0.0.0.0"; Address = "0.0.0.0";
Port = "4533";
}; };
}; };
} }