- secrets.keys = tellesflorian.keys;
- systemd.services.phpfpm-tellesflorian_dev.after = lib.mkAfter tellesflorian.phpFpm.serviceDeps;
- systemd.services.phpfpm-tellesflorian_dev.wants = tellesflorian.phpFpm.serviceDeps;
- systemd.services.phpfpm-tellesflorian_dev.preStart = lib.mkAfter tellesflorian.phpFpm.preStart;
- services.phpfpm.poolConfigs.tellesflorian_dev = tellesflorian.phpFpm.pool;
- system.activationScripts.tellesflorian_dev = tellesflorian.activationScript;
- myServices.websites.webappDirs."${tellesflorian.apache.webappName}" = tellesflorian.app.webRoot;
- services.websites.integration.modules = adminer.apache.modules ++ tellesflorian.apache.modules;
- services.websites.integration.vhostConfs.tellesflorian = {
- certName = "eldiron";
+ services.duplyBackup.profiles.florian_app.rootDir = app.varDir;
+ services.phpApplication.apps.florian_app = {
+ websiteEnv = "integration";
+ httpdUser = config.services.httpd.Inte.user;
+ httpdGroup = config.services.httpd.Inte.group;
+ inherit (app) webRoot varDir;
+ varDirPaths = {
+ "var" = "0700";
+ };
+ inherit app;
+ serviceDeps = [ "mysql.service" ];
+ preStartActions = [
+ "./bin/console --env=${app.environment} cache:clear --no-warmup"
+ ];
+ phpOpenbasedir = [ "/tmp" ];
+ phpPool = {
+ "php_admin_value[upload_max_filesize]" = "20M";
+ "php_admin_value[post_max_size]" = "20M";
+ #"php_admin_flag[log_errors]" = "on";
+ "pm" = "ondemand";
+ "pm.max_children" = "5";
+ "pm.process_idle_timeout" = "60";
+ };
+ phpEnv = {
+ SYMFONY_DEBUG_MODE = "\"yes\"";
+ };
+ phpWatchFiles = [
+ config.secrets.fullPaths."websites/florian/app"
+ ];
+ phpPackage = pkgs.php72;
+ };
+
+ secrets.keys = [
+ {
+ dest = "websites/florian/app_passwords";
+ user = config.services.httpd.Inte.user;
+ group = config.services.httpd.Inte.group;
+ permissions = "0400";
+ text = ''
+ invite:${secrets.invite_passwords}
+ '';
+ }
+ {
+ dest = "websites/florian/app";
+ user = config.services.httpd.Inte.user;
+ group = config.services.httpd.Inte.group;
+ permissions = "0400";
+ text = ''
+ # This file is auto-generated during the composer install
+ parameters:
+ database_host: ${secrets.mysql.host}
+ database_port: ${secrets.mysql.port}
+ database_name: ${secrets.mysql.database}
+ database_user: ${secrets.mysql.user}
+ database_password: ${secrets.mysql.password}
+ mailer_transport: smtp
+ mailer_host: 127.0.0.1
+ mailer_user: null
+ mailer_password: null
+ secret: ${secrets.secret}
+ '';
+ }
+ ];
+
+ services.websites.env.integration.modules = adminer.apache.modules;
+ services.websites.env.integration.vhostConfs.florian_app = {
+ certName = "integration";