add reverse-proxy for genepi's syncthing

This commit is contained in:
2025-07-18 00:58:53 +02:00
parent db352afea0
commit 0337f379b4

View File

@@ -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;