diff --git a/modules/server/services/forgejo/pages.nix b/modules/server/services/forgejo/pages.nix index fbc1b31c..774d9391 100644 --- a/modules/server/services/forgejo/pages.nix +++ b/modules/server/services/forgejo/pages.nix @@ -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; - # ssl = true; - # }]; - # locations."/" = { proxyPass = "http://localhost:4563"; }; - # 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; - # ''; - # }; - # }; + services.nginx.virtualHosts = { + "pages.sako.lol" = { + listen = [{ + addr = "0.0.0.0"; + port = 443; + # ssl = true; + }]; + 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: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;