Path to application root
'';
};
- webappName = mkOption {
- type = nullOr str;
- default = null;
- description = ''
- Alias name for the app, to be used in services.websites.webappDirs
- '';
- };
webRoot = mkOption {
type = nullOr path;
description = ''
Full paths to listen for php
'';
};
- services.phpApplication.webappDirs = mkOption {
- type = attrsOf path;
- default = attrsets.filterAttrs (n: v: builtins.hasAttr n cfg.apps) config.services.websites.webappDirsPaths;
- readOnly = true;
- description = ''
- Stable name webapp dirs for httpd
- '';
- };
};
config = {
}
) cfg.apps;
- services.websites.webappDirs = attrsets.mapAttrs' (name: icfg: attrsets.nameValuePair
- (if icfg.webappName == null then name else icfg.webappName) icfg.webRoot
- ) (attrsets.filterAttrs (n: v: !isNull v.webRoot) cfg.apps);
-
services.filesWatcher = attrsets.mapAttrs' (name: icfg: attrsets.nameValuePair
"phpfpm-${name}" {
restart = true;