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;