mapzen_valhalla_key web_passwords["mapzen_valhalla_key"]
thunderforest_key web_passwords["thunderforest_key"]
totp_key web_passwords["totp_key"]
- csp_report_url "https://openstreetmap.report-uri.io/r/default/csp/reportOnly"
+ csp_enforce true
end
package "libjson-xs-perl"
property :mapzen_valhalla_key, String
property :thunderforest_key, String
property :totp_key, String
+property :csp_enforce, [TrueClass, FalseClass], :default => false
property :csp_report_url, String
property :piwik_configuration, Hash
line.gsub!(/^( *)#totp_key:.*$/, "\\1totp_key: \"#{new_resource.totp_key}\"")
end
+ if new_resource.csp_enforce
+ line.gsub!(/^( *)csp_enforce:.*$/, "\\1csp_enforce: \"#{new_resource.csp_enforce}\"")
+ end
+
if new_resource.csp_report_url
line.gsub!(/^( *)#csp_report_url:.*$/, "\\1csp_report_url: \"#{new_resource.csp_report_url}\"")
end