From f4ee9acf1267913ea0d3e454d94a1536b319d4c6 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:30:58 +0400 Subject: [PATCH] it works i guess --- modules/server/services/forgejo/pages.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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;