-{ lib, pkgs, config, myconfig, ... }:
+{ lib, pkgs, config, ... }:
options.myServices.websites.chloe.integration.enable = lib.mkEnableOption "enable Chloe's website in integration";
config = lib.mkIf cfg.enable {
options.myServices.websites.chloe.integration.enable = lib.mkEnableOption "enable Chloe's website in integration";
config = lib.mkIf cfg.enable {
secrets.keys = chloe.keys;
systemd.services.phpfpm-chloe_dev.after = lib.mkAfter chloe.phpFpm.serviceDeps;
systemd.services.phpfpm-chloe_dev.wants = chloe.phpFpm.serviceDeps;
services.phpfpm.pools.chloe_dev = {
secrets.keys = chloe.keys;
systemd.services.phpfpm-chloe_dev.after = lib.mkAfter chloe.phpFpm.serviceDeps;
systemd.services.phpfpm-chloe_dev.wants = chloe.phpFpm.serviceDeps;
services.phpfpm.pools.chloe_dev = {
- listen = chloe.phpFpm.socket;
- extraConfig = chloe.phpFpm.pool;
+ user = config.services.httpd.Inte.user;
+ group = config.services.httpd.Inte.group;
+ settings = chloe.phpFpm.pool;
phpOptions = config.services.phpfpm.phpOptions + ''
extension=${pkgs.php}/lib/php/extensions/mysqli.so
'';
};
system.activationScripts.chloe_dev = chloe.activationScript;
myServices.websites.webappDirs."${chloe.apache.webappName}" = chloe.app.webRoot;
phpOptions = config.services.phpfpm.phpOptions + ''
extension=${pkgs.php}/lib/php/extensions/mysqli.so
'';
};
system.activationScripts.chloe_dev = chloe.activationScript;
myServices.websites.webappDirs."${chloe.apache.webappName}" = chloe.app.webRoot;
- services.websites.integration.modules = chloe.apache.modules;
- services.websites.integration.vhostConfs.chloe = {
- certName = "eldiron";
+ services.websites.env.integration.modules = chloe.apache.modules;
+ services.websites.env.integration.vhostConfs.chloe = {
+ certName = "integration";