X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fplayvideos%2FREADME.md;h=ab4be22a46b5ad2a222fb84e1bae5ca4af40e745;hb=0926d263902c184bd4f4c2036cb8ee90f81c5060;hp=54729e0be5ea14d86169852d2b1d6cc94309d7da;hpb=a33c574461cd082588b11b8843fe8fd7f92e3fe6;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/playvideos/README.md b/plugins/playvideos/README.md index 54729e0b..ab4be22a 100644 --- a/plugins/playvideos/README.md +++ b/plugins/playvideos/README.md @@ -8,14 +8,22 @@ This uses code from https://zaius.github.io/youtube_playlist/ and is currently o #### Installation and setup -This is a default Shaarli plugin, you just have to enable it. See https://github.com/shaarli/Shaarli/wiki/Shaarli-configuration/ +This is a default Shaarli plugin, you just have to enable it. See https://shaarli.readthedocs.io/en/master/Shaarli-configuration/ #### Troubleshooting If your server has [Content Security Policy](http://content-security-policy.com/) headers enabled, this may prevent the script from loading fully. You should relax the CSP in your server settings. Example CSP rule for apache2: -`Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'"` +In `/etc/apache2/conf-available/shaarli-csp.conf`: + +```apache + + Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'" + +``` + +Then run `a2enconf shaarli-csp; service apache2 reload` ### License ```