HEJOIKWSJIOWSGIFUVOHJ

This commit is contained in:
Sakooooo 2025-01-05 16:22:42 +04:00
parent 07394d0ef0
commit e7bfc943af
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -130,24 +130,18 @@ in {
users.groups =
mkIf (cfg.group == "codeberg-pages") { codeberg-pages = { }; };
# services.nginx.virtualHosts = {
# "pages.sako.lol" = {
services.nginx.virtualHosts = {
"*.pages.sako.lol" = {
# listen = [{
# addr = "0.0.0.0";
# port = 443;
# # ssl = true;
# }];
# locations."/" = { proxyPass = "https://localhost:57763"; };
# };
# "*.pages.sako.lol" = {
# listen = [{
# addr = "0.0.0.0";
# port = 443;
# # ssl = true;
# }];
# locations."/" = { proxyPass = "https://localhost:56773"; };
# };
# };
useACME = true;
useSSL = true;
locations."/" = { proxyPass = "https://localhost:56773"; };
};
};
security.acme.certs."pages.sako.lol" = {
extraDomainNames = [ "*.pages.sako.lol" ];
credentialsFile = "/srv/secrets/porkbun";
@ -157,7 +151,7 @@ in {
services.nginx.streamConfig = ''
server {
server_name *.pages.sako.lol;
listen 443 ssl;
listen 55342 ssl;
ssl_certificate /var/lib/acme/pages.sako.lol/fullchain.pem;
ssl_certificate_key /var/lib/acme/pages.sako.lol/key.pem;