Create VPN subdomains

This commit is contained in:
Julien Malka 2022-02-26 18:55:41 +01:00
parent 56133bec60
commit c864b96f07
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F
9 changed files with 65 additions and 23 deletions

View file

@ -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))]);
}