it works i guess

This commit is contained in:
Sakooooo 2025-01-05 17:30:58 +04:00
parent 809d072615
commit f4ee9acf12
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -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;