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 = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."${cfg.domain}" = {
|
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 = ''
|
locations."~ \\.php$".extraConfig = ''
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools.think-greaterchiangmai.socket};
|
fastcgi_pass unix:${config.services.phpfpm.pools.think-greaterchiangmai.socket};
|
||||||
fastcgi_index site.php;
|
fastcgi_index site.php;
|
||||||
'';
|
'';
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
index index.php;
|
index index.php;
|
||||||
include ${cfg.package}/share/php/flarum/.nginx.conf;
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user