--- /dev/null
+{ env }:
+rec {
+ keys = [{
+ dest = "webapps/tools-csp-reports.conf";
+ user = "wwwrun";
+ group = "wwwrun";
+ permissions = "0400";
+ text = with env.postgresql; ''
+ env[CSP_REPORT_URI] = "host=${socket} dbname=${database} user=${user} password=${password}"
+ '';
+ }];
+}
dmarc-reports = pkgs.callPackage ./dmarc_reports.nix {
env = config.myEnv.tools.dmarc_reports;
};
+ csp-reports = pkgs.callPackage ./csp_reports.nix {
+ env = config.myEnv.tools.csp_reports;
+ };
landing = pkgs.callPackage ./landing.nix {};
++ wallabag.keys
++ yourls.keys
++ dmarc-reports.keys
+ ++ csp-reports.keys
++ webhooks.keys;
services.duplyBackup.profiles = {
"/run/wrappers/bin/sendmail" landing "/tmp"
"${config.secrets.location}/webapps/webhooks"
];
+ "include" = "${config.secrets.location}/webapps/tools-csp-reports.conf";
};
phpEnv = {
CONTACT_EMAIL = config.myEnv.tools.contact;
- CSP_REPORT_URI = with config.myEnv.tools.csp_reports.postgresql;
- "\"host=${socket} dbname=${database} user=${user} password=${password}\"";
};
phpPackage = pkgs.php72;
};