mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Decomissionned useless feature
This commit is contained in:
parent
6215e2b195
commit
be00428bef
6 changed files with 5 additions and 27 deletions
|
@ -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}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue