some nginx conf from rtsk sources

This commit is contained in:
kochetkov 2025-01-14 10:01:17 +03:00
parent 11f49ae09b
commit 09916af2c4

View file

@ -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
@ -78,7 +80,9 @@ http {
root /frontend; root /frontend;
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";