nas: start syncthing
This commit is contained in:
parent
ea0beb9673
commit
43cfd4b6d3
@ -14,6 +14,7 @@
|
|||||||
./nfs.nix
|
./nfs.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
|
./syncthing.nix
|
||||||
]
|
]
|
||||||
|
|
||||||
# picom, polybar and sxhkd are pulled from desktop module
|
# picom, polybar and sxhkd are pulled from desktop module
|
||||||
|
@ -34,7 +34,18 @@
|
|||||||
"syncthing.home.opel-online.de" = {
|
"syncthing.home.opel-online.de" = {
|
||||||
useACMEHost = "home.opel-online.de";
|
useACMEHost = "home.opel-online.de";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "${toString config.services.syncthing.guiAddress}";
|
locations."/" = {
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyPass = "http://${toString config.services.syncthing.guiAddress}";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host localhost;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Server $host;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user