This commit is contained in:
2026-06-24 12:08:36 +03:00
parent e2e0e57918
commit 1ff3d3e714
2 changed files with 37 additions and 13 deletions
+4 -3
View File
@@ -113,9 +113,10 @@ let
hostName = "${xlib.device.hostname}"; hostName = "${xlib.device.hostname}";
networkmanager.enable = true; networkmanager.enable = true;
firewall.enable = false; firewall.enable = false;
# nameservers = [ nameservers = [
# "127.0.0.1" "127.0.0.1"
# ]; "192.168.1.1"
];
}; };
system = { system = {
+33 -10
View File
@@ -29,6 +29,10 @@ in
addr = "192.168.1.20"; addr = "192.168.1.20";
port = 10000; port = 10000;
} }
{
addr = "127.0.0.1";
port = 10000;
}
]; ];
}; };
"office.home.arpa" = { "office.home.arpa" = {
@@ -51,6 +55,10 @@ in
addr = "192.168.1.20"; addr = "192.168.1.20";
port = 8446; port = 8446;
} }
{
addr = "127.0.0.1";
port = 10000;
}
]; ];
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;
@@ -61,7 +69,7 @@ in
enableACME = true; enableACME = true;
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${server}:8446"; proxyPass = "http://127.0.0.1:8446";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@@ -74,11 +82,11 @@ in
enableACME = true; enableACME = true;
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${server}:10000"; proxyPass = "http://127.0.0.1:10000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
"/whiteboard" = { "/whiteboard" = {
proxyPass = "http://${server}:3002"; proxyPass = "http://127.0.0.1:3002";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@@ -90,7 +98,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:9000"; proxyPass = "http://127.0.0.1:9000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -101,7 +109,18 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:3000"; proxyPass = "http://127.0.0.1:3000";
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
"git.zeroq.su" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -123,7 +142,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:4001"; proxyPass = "http://127.0.0.1:4001";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@@ -131,7 +150,7 @@ in
addSSL = true; addSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:6061"; proxyPass = "http://127.0.0.1:6061";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@@ -139,7 +158,7 @@ in
addSSL = true; addSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:2283"; proxyPass = "http://127.0.0.1:2283";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -150,7 +169,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:8083"; proxyPass = "http://127.0.0.1:8083";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -161,7 +180,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:53"; proxyPass = "http://127.0.0.1:53";
}; };
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;
@@ -187,6 +206,10 @@ in
addr = "192.168.1.20"; addr = "192.168.1.20";
port = 80; port = 80;
} }
{
addr = "127.0.0.1";
port = 80;
}
]; ];
}; };
}; };