X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=installation%2Fcaddyfile-pleroma.example;h=2c1efde2d06f3eb445bdfc078217fedd99d85e06;hb=0a58428de6096f3222dd30d1a1f186150c25f4f2;hp=ed24fc16c72f656bd4f7bec9250f62172730003b;hpb=440b459cd14778e155cd6a3550847b1277fbd1f1;p=akkoma diff --git a/installation/caddyfile-pleroma.example b/installation/caddyfile-pleroma.example index ed24fc16c..2c1efde2d 100644 --- a/installation/caddyfile-pleroma.example +++ b/installation/caddyfile-pleroma.example @@ -22,6 +22,7 @@ social.domain.tld { Referrer-Policy "same-origin" Strict-Transport-Security "max-age=31536000; includeSubDomains;" Expect-CT "enforce, max-age=2592000" + Content-Security-Policy "default-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' data: https:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self'; connect-src 'self' wss://social.domain.tld; upgrade-insecure-requests;" } # If you do not want remote frontends to be able to access your Pleroma backend server, remove these lines.