mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/nixos/think-gtcm.nix
This commit is contained in:
@@ -218,14 +218,23 @@ in
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."${cfg.domain}" = {
|
||||
root = "${cfg.package}/public";
|
||||
root = "${cfg.package}/share/php/think-gtcm/public";
|
||||
locations."~ \\.php$".extraConfig = ''
|
||||
fastcgi_pass unix:${config.services.phpfpm.pools.think-greaterchiangmai.socket};
|
||||
fastcgi_index site.php;
|
||||
'';
|
||||
extraConfig = ''
|
||||
index index.php;
|
||||
'';
|
||||
};
|
||||
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 site.php;
|
||||
'';
|
||||
extraConfig = ''
|
||||
index index.php;
|
||||
include ${cfg.package}/share/php/flarum/.nginx.conf;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user