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