some nginx conf from rtsk sources
This commit is contained in:
parent
2df376e075
commit
db7f6bee97
1 changed files with 4 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ http {
|
|||
|
||||
sendfile on;
|
||||
|
||||
server_tokens off;
|
||||
|
||||
gzip on;
|
||||
|
||||
# text/html doesn't need to be defined there, it's compressed always
|
||||
|
|
@ -79,6 +81,8 @@ http {
|
|||
index index.html;
|
||||
try_files $uri @index;
|
||||
|
||||
add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'self'; script-src 'self'; style-src 'unsafe-inline' 'self' data:; font-src 'self' data:; img-src 'self' data:;";
|
||||
|
||||
# Media: images, icons, video, audio, HTC
|
||||
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff|ttf)$ {
|
||||
expires 1M;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue