X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fenvironment.nix;h=b8c4dd2325a89497decbdc876f0b73f1dc05601e;hp=3a805c601b7693cf87f3f68ab95e5dfc96bd1180;hb=68c45ad53b34301c1a0c59352a839db13e1f2420;hpb=5868f9c64f0a2e9c03f6abee35ed0f0f09d30fe4 diff --git a/modules/private/environment.nix b/modules/private/environment.nix index 3a805c6..b8c4dd2 100644 --- a/modules/private/environment.nix +++ b/modules/private/environment.nix @@ -1077,6 +1077,16 @@ in type = attrsOf str; description = "Mapping 'name'.php => script for webhooks"; }; + csp_reports = mkOption { + description = "CSP report configuration"; + type = submodule { + options = { + report_uri = mkOption { type = str; description = "URI to report CSP violations to"; }; + policies = mkOption { type = attrsOf str; description = "CSP policies to apply"; }; + postgresql = mkPsqlOptions "CSP reports"; + }; + }; + }; commento = mkOption { description = "Commento configuration"; type = submodule {