add reverse-proxy for genepi's syncthing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user