From 91101c856c3efac53e8a4db4cc537b77370aa7df Mon Sep 17 00:00:00 2001 From: Literallie Date: Fri, 20 Oct 2017 12:31:16 +0200 Subject: Change CSP config format to be more intuitive --- config.json.example | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.json.example') diff --git a/config.json.example b/config.json.example index e2d774c7..7e4394b0 100644 --- a/config.json.example +++ b/config.json.example @@ -22,6 +22,13 @@ "includeSubdomains": "true", "preload": "true" }, + csp: { + "enable": "true", + "directives": { + }, + "upgradeInsecureRequests": "auto" + "addDefaults": "true" + }, "db": { "username": "", "password": "", -- cgit v1.2.3 From 04f5e3a3414abbb76841df8375598fb690323f11 Mon Sep 17 00:00:00 2001 From: Literallie Date: Sun, 22 Oct 2017 01:22:48 +0200 Subject: Move CSP logic to new file, Fix boolean config examples Not sure why I was quoting these in the first place --- config.json.example | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config.json.example') diff --git a/config.json.example b/config.json.example index 7e4394b0..98658770 100644 --- a/config.json.example +++ b/config.json.example @@ -17,17 +17,17 @@ "production": { "domain": "localhost", "hsts": { - "enable": "true", + "enable": true, "maxAgeSeconds": "31536000", - "includeSubdomains": "true", - "preload": "true" + "includeSubdomains": true, + "preload": true }, csp: { - "enable": "true", + "enable": true, "directives": { }, "upgradeInsecureRequests": "auto" - "addDefaults": "true" + "addDefaults": true }, "db": { "username": "", -- cgit v1.2.3