diff --git a/modules/server/services/forgejo/pages.nix b/modules/server/services/forgejo/pages.nix index 2b8e38a8..56f29052 100644 --- a/modules/server/services/forgejo/pages.nix +++ b/modules/server/services/forgejo/pages.nix @@ -157,9 +157,22 @@ in { ''; locations."/" = { proxyPass = "https://localhost:4563"; }; }; + "*.*.pages.sako.lol" = { + # listen = [{ + # addr = "0.0.0.0"; + # port = 443; + # # ssl = true; + # }]; + forceSSL = true; + useACMEHost = "pages.sako.lol"; + extraConfig = '' + proxy_ssl_server_name on; + ''; + locations."/" = { proxyPass = "https://localhost:4563"; }; + }; }; security.acme.certs."pages.sako.lol" = { - extraDomainNames = [ "*.pages.sako.lol" ]; + extraDomainNames = [ "*.pages.sako.lol" "*.*.pages.sako.lol" ]; credentialsFile = "/srv/secrets/porkbun"; dnsProvider = "porkbun"; webroot = null;