Decomissionned useless feature

This commit is contained in:
Luj 2022-04-02 20:41:05 +02:00
parent 6215e2b195
commit be00428bef
Signed by: luj
GPG key ID: 6FC74C847011FD83
6 changed files with 5 additions and 27 deletions

View file

@ -54,24 +54,11 @@ in
};
};
mkPrivateSubdomain = name: port: {
luj.nginx.enable = true;
services.nginx.virtualHosts."${name}.julienmalka.me" = {
locations."/" = {
proxyPass = "http://localhost:${toString port}";
extraConfig = ''
allow 10.100.0.0/24;
deny all;
'';
};
};
};
mkVPNSubdomain = name: port: {
luj.nginx.enable = true;
services.nginx.virtualHosts."${name}.luj" = {
sslCertificate = "/etc/nginx/certs/subdomains/cert.pem";
sslCertificateKey = "/etc/nginx/certs/subdomains/key.pem";
sslCertificate = "/etc/nginx/certs/${name}.luj/cert.pem";
sslCertificateKey = "/etc/nginx/certs/${name}.luj/key.pem";
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}";