about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/navidrome/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/services/navidrome/default.nix b/modules/services/navidrome/default.nix
index 98dd678..d813142 100644
--- a/modules/services/navidrome/default.nix
+++ b/modules/services/navidrome/default.nix
@@ -20,6 +20,20 @@ in {
       };
     };
 
+    services.nginx.virtualHosts."music.fcuny.xyz" = {
+      forceSSL = true;
+      useACMEHost = "music.fcuny.xyz";
+      locations."/" = {
+        proxyPass = "http://127.0.0.1:4533";
+        proxyWebsockets = true;
+      };
+    };
+
+    security.acme.certs."music.fcuny.xyz" = {
+      dnsProvider = "gcloud";
+      credentialsFile = secrets."acme/credentials".path;
+    };
+
     my.services.backup = { paths = [ "/var/lib/navidrome" ]; };
     networking.firewall.allowedTCPPorts = [ 4533 ];
   };