Fix jxl-polyfill patch on akkoma
This commit is contained in:
parent
17d90356fb
commit
20da4c8358
2 changed files with 19 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
repo = "akkoma";
|
repo = "akkoma";
|
||||||
inherit (source) rev sha256;
|
inherit (source) rev sha256;
|
||||||
};
|
};
|
||||||
patches = [./akkoma.patch];
|
patches = [./akkoma.patch ./jxl-polyfill.patch];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
beamPackages.mixRelease rec {
|
beamPackages.mixRelease rec {
|
||||||
|
|
18
akkoma/jxl-polyfill.patch
Normal file
18
akkoma/jxl-polyfill.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
diff --git a/lib/pleroma/web/plugs/http_security_plug.ex b/lib/pleroma/web/plugs/http_security_plug.ex
|
||||||
|
index d1e6cc9d3..4e29355c5 100644
|
||||||
|
--- a/lib/pleroma/web/plugs/http_security_plug.ex
|
||||||
|
+++ b/lib/pleroma/web/plugs/http_security_plug.ex
|
||||||
|
@@ -113,12 +113,7 @@ defp csp_string do
|
||||||
|
connect_src
|
||||||
|
end
|
||||||
|
|
||||||
|
- script_src =
|
||||||
|
- if Config.get(:env) == :dev do
|
||||||
|
- "script-src 'self' 'unsafe-eval'"
|
||||||
|
- else
|
||||||
|
- "script-src 'self'"
|
||||||
|
- end
|
||||||
|
+ script_src = "script-src 'self' 'unsafe-eval'"
|
||||||
|
|
||||||
|
report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"]
|
||||||
|
insecure = if scheme == "https", do: "upgrade-insecure-requests"
|
Reference in a new issue