mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 02:09:04 +02:00
Secret services are now under cover
This commit is contained in:
parent
f01fd4e8ca
commit
96d5711503
7 changed files with 23 additions and 7 deletions
|
@ -52,6 +52,22 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
mkPrivateSubdomain = name: port: {
|
||||
luj.nginx.enable = true;
|
||||
services.nginx.virtualHosts."${name}.julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
extraConfig = ''
|
||||
allow 10.100.0.0/24;
|
||||
deny all;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
luj = import ./luj.nix final;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue