This commit is contained in:
Sakooooo 2025-01-05 16:00:01 +04:00
parent 9f23b8d396
commit 4baa7193cc
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -130,34 +130,34 @@ in {
users.groups =
mkIf (cfg.group == "codeberg-pages") { codeberg-pages = { }; };
# services.nginx.virtualHosts = {
# "pages.sako.lol" = {
# listen = [{
# addr = "0.0.0.0";
# port = 443;
services.nginx.virtualHosts = {
"pages.sako.lol" = {
listen = [{
addr = "0.0.0.0";
port = 443;
# ssl = true;
# }];
# locations."/" = { proxyPass = "http://localhost:4563"; };
# extraConfig = ''
# ssl_preread on;
# '';
# };
# "*.pages.sako.lol" = {
# listen = [{
# addr = "0.0.0.0";
# port = 443;
}];
locations."/" = { proxyPass = "http://localhost:57763"; };
extraConfig = ''
ssl_preread on;
'';
};
"*.pages.sako.lol" = {
listen = [{
addr = "0.0.0.0";
port = 443;
# ssl = true;
# }];
# locations."/" = { proxyPass = "http://localhost:4563"; };
# extraConfig = ''
# ssl_preread on;
# '';
# };
# };
}];
locations."/" = { proxyPass = "http://localhost:56773"; };
extraConfig = ''
ssl_preread on;
'';
};
};
services.nginx.streamConfig = ''
server {
server_name pages.sako.lol;
listen 443;
# server_name pages.sako.lol;
listen 57763;
proxy_connect_timeout 1s;
proxy_timeout 3s;
@ -166,8 +166,8 @@ in {
ssl_preread on;
}
server {
server_name *.pages.sako.lol;
listen 443;
# server_name *.pages.sako.lol;
listen 56773;
proxy_connect_timeout 1s;
proxy_timeout 3s;