aboutsummaryrefslogtreecommitdiff
path: root/conf/nginx.conf
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-08-31 00:15:01 +0200
committerGitHub <noreply@github.com>2018-08-31 00:15:01 +0200
commita8cd8031cd6cc85125ff7fafc10443c975cf209c (patch)
tree217fd016f98ebb3ec6a33806a1c5bbcf82d9e87d /conf/nginx.conf
parent20fe4996b6fdee3d1ff341ad953f21af0474e109 (diff)
parent09a07f19c518c1555f7cb09fc0d84be7b55e74f1 (diff)
downloadmastodon_ynh-a8cd8031cd6cc85125ff7fafc10443c975cf209c.tar.gz
mastodon_ynh-a8cd8031cd6cc85125ff7fafc10443c975cf209c.tar.bz2
mastodon_ynh-a8cd8031cd6cc85125ff7fafc10443c975cf209c.zip
Merge pull request #109 from YunoHost-Apps/patch-frju365
Nginx : CSP + typo
Diffstat (limited to 'conf/nginx.conf')
-rw-r--r--conf/nginx.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf
index a183a31..87b517a 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -1,6 +1,9 @@
# upload max size
client_max_body_size 100M;
+# Content Security Policy : security to avoid launching unsecure script
+add_header Content-Security-Policy "default-src 'none'; font-src 'self'; media-src 'self'; object-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; img-src 'self' blob: data:; connect-src 'self' wss://__DOMAIN__;";
+
# add to v1.4 assets
root __FINALPATH__/live/public;