add reverse-proxy for genepi's syncthing
This commit is contained in:
@@ -5,8 +5,17 @@
|
|||||||
let
|
let
|
||||||
user = "rpqt";
|
user = "rpqt";
|
||||||
home = config.users.users.${user}.home;
|
home = config.users.users.${user}.home;
|
||||||
|
domain = "home.rpqt.fr";
|
||||||
|
subdomain = "genepi.${domain}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
services.nginx.virtualHosts.${subdomain} = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "${domain}";
|
||||||
|
locations."/syncthing".proxyPass = "http://${config.services.syncthing.guiAddress}";
|
||||||
|
};
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = user;
|
user = user;
|
||||||
|
|||||||
Reference in New Issue
Block a user