add reverse-proxy for genepi's syncthing
This commit is contained in:
parent
db352afea0
commit
0337f379b4
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue