3 keys."webapps/tools-dmarc-reports.php" = {
9 $dbhost = "${env.mysql.host}";
10 $dbname = "${env.mysql.database}";
11 $dbuser = "${env.mysql.user}";
12 $dbpass = "${env.mysql.password}";
13 $dbport = "${env.mysql.port}";
14 $anonymous_key = "${env.anonymous_key}";
18 webRoot = ./dmarc_reports;
22 modules = [ "proxy_fcgi" ];
23 webappName = "tools_dmarc_reports";
24 root = "/run/current-system/webapps/${webappName}";
25 vhostConf = socket: ''
26 Alias /dmarc-reports "${root}"
28 DirectoryIndex index.html
30 SetHandler "proxy:unix:${socket}|fcgi://localhost"
34 Options +FollowSymlinks
36 SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
39 Require ldap-attribute uid=immae
44 basedir = builtins.concatStringsSep ":"
45 [ webRoot config.secrets.fullPaths."webapps/tools-dmarc-reports.php" ];
47 "listen.owner" = apache.user;
48 "listen.group" = apache.group;
50 "pm.max_children" = "60";
51 "pm.process_idle_timeout" = "60";
53 # Needed to avoid clashes in browser cookies (same domain)
54 "php_admin_value[open_basedir]" = "${basedir}:/tmp";
57 SECRETS_FILE = config.secrets.fullPaths."webapps/tools-dmarc-reports.php";