mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-04 03:01:05 +02:00
Add vpn subdomains with domain name luj.home
This commit is contained in:
parent
f66f54312f
commit
56133bec60
1 changed files with 19 additions and 0 deletions
|
@ -32,6 +32,7 @@ in
|
||||||
mosh = prev.pkgs.callPackage ../packages/mosh { };
|
mosh = prev.pkgs.callPackage ../packages/mosh { };
|
||||||
flaresolverr = prev.pkgs.callPackage ../packages/flaresolverr { };
|
flaresolverr = prev.pkgs.callPackage ../packages/flaresolverr { };
|
||||||
htpdate = prev.pkgs.callPackage ../packages/htpdate { };
|
htpdate = prev.pkgs.callPackage ../packages/htpdate { };
|
||||||
|
authelia = prev.pkgs.callPackage ../packages/authelia { };
|
||||||
})
|
})
|
||||||
inputs.neovim-nightly-overlay.overlay
|
inputs.neovim-nightly-overlay.overlay
|
||||||
];
|
];
|
||||||
|
@ -67,6 +68,24 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mkVPNSubdomain = name: port: {
|
||||||
|
luj.nginx.enable = true;
|
||||||
|
services.nginx.virtualHosts."${name}.luj.home" = {
|
||||||
|
sslCertificate = "/etc/nginx/certs/subdomains/cert.pem";
|
||||||
|
sslCertificateKey = "/etc/nginx/certs/subdomains/key.pem";
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString port}";
|
||||||
|
extraConfig = ''
|
||||||
|
allow 10.100.0.0/24;
|
||||||
|
deny all;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
luj = import ./luj.nix final;
|
luj = import ./luj.nix final;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue