diff options
| author | frju365 <win10@tutanota.com> | 2018-08-25 00:26:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-25 00:26:40 +0200 |
| commit | 8a29c1db52736c599aea04782e48346741b06ae5 (patch) | |
| tree | c6028c3669907c0b0ef99945f77881f6ee2147ea /conf | |
| parent | a05de14f3f71cf0e2d8bb0fd10bc6a04c3210673 (diff) | |
| download | mastodon_ynh-8a29c1db52736c599aea04782e48346741b06ae5.tar.gz mastodon_ynh-8a29c1db52736c599aea04782e48346741b06ae5.tar.bz2 mastodon_ynh-8a29c1db52736c599aea04782e48346741b06ae5.zip | |
[mod] Add CSP for security
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/nginx.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf index 585109e..eb823e7 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'; 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; |
