This commit is contained in:
2026-01-26 18:05:24 +03:00
parent d9241a31a3
commit 87866bcd5a
2 changed files with 52 additions and 10 deletions
+22
View File
@@ -27,6 +27,28 @@
}
];
};
"zeroq.local" = {
forceSSL = false;
enableACME = false;
root = pkgs.writeTextDir "index.html" ''
<!doctype html>
<html>
<body>
<pre>This server is running in backend.</pre>
</body>
</html>
'';
listen = [
{
addr = "100.64.0.0";
port = 80;
}
{
addr = "192.168.1.20";
port = 80;
}
];
};
# "localhost:8000" = {
# forceSSL = false;
# enableACME = false;
+30 -10
View File
@@ -55,16 +55,36 @@ in
# client_max_body_size 5G;
# '';
# };
# "zeroq.ru" = {
# forceSSL = true;
# enableACME = true;
# locations."/.well-known/discord" = {
# extraConfig = ''
# default_type text/plain;
# return 200 "dh=c2d103553a4cfdaa1b7952a87a7d8120a1e167cc";
# '';
# };
# };
"zeroq.ru" = {
forceSSL = true;
enableACME = true;
root = pkgs.writeTextDir "index.html" ''
<!doctype html>
<html>
<body>
<pre>This server is running.</pre>
</body>
</html>
'';
locations = {
"/".tryFiles = "$uri =404";
"/guest/" = {
proxyPass = "http://${server}:80";
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
# "/.well-known/discord" = {
# extraConfig = ''
# default_type text/plain;
# return 200 "dh=c2d103553a4cfdaa1b7952a87a7d8120a1e167cc";
# '';
# };
};
};
"flux.zeroq.ru" = {
forceSSL = true;
enableACME = true;