mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 02:09:04 +02:00
Create VPN subdomains
This commit is contained in:
parent
56133bec60
commit
c864b96f07
9 changed files with 65 additions and 23 deletions
|
@ -61,17 +61,11 @@ in
|
|||
|
||||
}
|
||||
|
||||
({
|
||||
services.nginx.virtualHosts."music.julienmalka.me" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
]);
|
||||
|
||||
|
||||
|
||||
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port))
|
||||
|
||||
(mkIf cfg.nginx.enable (mkVPNSubdomain cfg.nginx.subdomain port))]);
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue