- system.activationScripts.connexionswing_prod = connexionswing.activationScript;
- myServices.websites.webappDirs."${connexionswing.apache.webappName}" = connexionswing.app.webRoot;
- services.websites.production.modules = connexionswing.apache.modules;
- services.websites.production.vhostConfs.connexionswing = {
+
+ secrets.keys = [
+ {
+ dest = "webapps/${app.environment}-connexionswing";
+ user = config.services.httpd.Prod.user;
+ group = config.services.httpd.Prod.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.name}
+ database_user: ${secrets.mysql.user}
+ database_password: ${secrets.mysql.password}
+ database_server_version: ${pkgs.mariadb.mysqlVersion}
+ mailer_transport: sendmail
+ mailer_host: null
+ mailer_user: null
+ mailer_password: null
+ subscription_email: ${secrets.email}
+ allow_robots: true
+ secret: ${secrets.secret}
+ services:
+ swiftmailer.mailer.default.transport:
+ class: Swift_SendmailTransport
+ arguments: ['/run/wrappers/bin/sendmail -bs']
+ '';
+ }
+ ];
+
+ services.websites.env.production.vhostConfs.connexionswing_prod = {