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;
|
||||
|
||||
server_tokens off;
|
||||
|
||||
gzip on;
|
||||
|
||||
# text/html doesn't need to be defined there, it's compressed always
|
||||
|
|
@ -78,7 +80,9 @@ http {
|
|||
root /frontend;
|
||||
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:;";
|
||||
|
||||
#Application config
|
||||
location = /src/resources/app-config.json {
|
||||
add_header Cache-Control "no-cache";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue