From 0337f379b42c5c2b667ca7503bb662fb0d7d2633 Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Fri, 18 Jul 2025 00:58:53 +0200 Subject: [PATCH] add reverse-proxy for genepi's syncthing --- machines/genepi/syncthing.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/machines/genepi/syncthing.nix b/machines/genepi/syncthing.nix index 3a0240f..70e7aec 100644 --- a/machines/genepi/syncthing.nix +++ b/machines/genepi/syncthing.nix @@ -5,8 +5,17 @@ let user = "rpqt"; home = config.users.users.${user}.home; + domain = "home.rpqt.fr"; + subdomain = "genepi.${domain}"; in { + + services.nginx.virtualHosts.${subdomain} = { + forceSSL = true; + useACMEHost = "${domain}"; + locations."/syncthing".proxyPass = "http://${config.services.syncthing.guiAddress}"; + }; + services.syncthing = { enable = true; user = user;