Commit dd08cc3d authored by erdnaxe's avatar erdnaxe 🦋
Browse files

Fix grafana CSP

parent 973f9223
......@@ -13,6 +13,11 @@
ANALYTICS_REPORTING_ENABLED = "false";
SNAPSHOTS_ENABLED = "false";
PANELS_DISABLE_SANITIZE_HTML = "true";
SECURITY_STRICT_TRANSPORT_SECURITY = "true";
SECURITY_STRICT_TRANSPORT_SECURITY_MAX_AGE_SECONDS = "31536000";
SECURITY_STRICT_TRANSPORT_SECURITY_PRELOAD = "true";
SECURITY_STRICT_TRANSPORT_SECURITY_SUBDOMAINS = "true";
SECURITY_CONTENT_SECURITY_POLICY = "true";
};
};
......@@ -22,9 +27,6 @@
enableACME = true;
forceSSL = true;
locations."/" = { proxyPass = "http://127.0.0.1:3001"; };
extraConfig = ''
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload" always;
'';
};
};
}
......@@ -43,9 +43,6 @@
proxyPass = "http://127.0.0.1:3003";
proxyWebsockets = true;
};
extraConfig = ''
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload" always;
'';
};
};
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment