some nginx conf from rtsk sources
This commit is contained in:
parent
11f49ae09b
commit
09916af2c4
1 changed files with 5 additions and 1 deletions
|
|
@ -16,6 +16,8 @@ http {
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
|
|
||||||
# text/html doesn't need to be defined there, it's compressed always
|
# text/html doesn't need to be defined there, it's compressed always
|
||||||
|
|
@ -79,6 +81,8 @@ http {
|
||||||
index index.html;
|
index index.html;
|
||||||
try_files $uri @index;
|
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:;";
|
||||||
|
|
||||||
#Application config
|
#Application config
|
||||||
location = /src/resources/app-config.json {
|
location = /src/resources/app-config.json {
|
||||||
add_header Cache-Control "no-cache";
|
add_header Cache-Control "no-cache";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue