feat: add gonic

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-09-21 11:53:33 +02:00
parent 87f425b1c6
commit a3bd66771e
Signed by: lander
GPG key ID: 0142722B4B0C536F

View file

@ -68,6 +68,24 @@
};
};
services.gonic = {
enable = true;
settings = {
music-path = [ "/data/music" ];
podcast-path = [ "/data/podcast" ];
playlists-path = [ "/data/playlists" ];
};
};
services.nginx.virtualHosts."music.escapeangle.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:4747";
proxyWebsockets = true;
};
};
sops = {
defaultSopsFile = ./hosting-02.yaml;
secrets = {