hosts/porter: add scholl service proxy
This commit is contained in:
parent
607fdde5fd
commit
91e6a42ea3
@ -23,15 +23,29 @@
|
||||
networking.nameservers = [ "46.38.255.230" "46.38.252.230" ];
|
||||
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts = {
|
||||
"chisel.clerie.de" = {
|
||||
enableACME = true;
|
||||
addSSL = true;
|
||||
services.nginx.virtualHosts.default = lib.mkForce {};
|
||||
services.nginx.virtualHosts."*.schule.clerie.de" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://[::1]:3765";
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://schule.net.clerie.de";
|
||||
};
|
||||
};
|
||||
|
||||
services.sniproxy = {
|
||||
enable = true;
|
||||
config = ''
|
||||
error_log {
|
||||
filename /var/log/sniproxy/error.log
|
||||
}
|
||||
access_log {
|
||||
filename /var/log/sniproxy/access.log
|
||||
}
|
||||
listen 443 {
|
||||
proto tls
|
||||
}
|
||||
table {
|
||||
^.*\.schule\.clerie\.de$ [2001:638:904:ffcb::d]
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
clerie.nginx-port-forward = {
|
||||
@ -43,7 +57,7 @@
|
||||
};
|
||||
|
||||
services.chisel-server = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
host = "[::1]";
|
||||
port = 3765;
|
||||
authfile = "/var/src/secrets/chisel/users.json";
|
||||
|
Loading…
Reference in New Issue
Block a user