mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/nixos/think-backend-gtcm.nix
This commit is contained in:
2025-11-25 14:11:59 +07:00
parent 81dc138e69
commit 5892f7caed
3 changed files with 300 additions and 10 deletions

View File

@@ -285,16 +285,22 @@ in
};
};
};
# virtualHosts."${cfg.backendDomain}" = {
# root = "${cfg.packageBackend}/share/php/think-backend-gtcm/public";
# locations."~ \\.php$".extraConfig = ''
# fastcgi_pass unix:${config.services.phpfpm.pools.think-greaterchiangmai.socket};
# fastcgi_index index.php;
# '';
# extraConfig = ''
# index index.php;
# '';
# };
virtualHosts."${cfg.backendDomain}" = {
root = "${think-backend-gtcm}/public";
locations = {
"/" = {
index = "index.php";
tryFiles = "$uri $uri/ /index.php?$query_string";
};
"~ \\.php$".extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools."think-backend-gtcm".socket};
'';
"~ \\.(js|css|gif|png|ico|jpg|jpeg)$" = {
extraConfig = "expires 365d;";
};
};
};
};
services.mysql = {