mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/nixos/think-backend-gtcm.nix
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user