]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
[doc] add apache2 CSP config
authornodiscc <nodiscc@gmail.com>
Mon, 30 Nov 2015 22:17:01 +0000 (23:17 +0100)
committernodiscc <nodiscc@gmail.com>
Mon, 30 Nov 2015 22:17:01 +0000 (23:17 +0100)
plugins/playvideos/README.md

index 54729e0be5ea14d86169852d2b1d6cc94309d7da..b1698470755d1d7adff2e91528f57518d14afbda 100644 (file)
@@ -14,8 +14,16 @@ This is a default Shaarli plugin, you just have to enable it. See https://github
 #### 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
+<Directory /path/to/shaarli>
+    Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'"
+</Directory>
+```
+
+Then run `a2enconf shaarli-csp; service apache2 reload`
 
 ### License
 ```