config nginx

deployment_final
s8613 2025-07-02 15:27:15 +02:00
parent cee8de81e8
commit cbd5dcae92
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ server {
root /usr/share/nginx/html;
index index.html;
add_header Content-Security-Policy "default-src '\''self'\''; script-src '\''self'\'' '\''unsafe-eval'\'' '\''unsafe-inline'\''; style-src '\''self'\'' '\''unsafe-inline'\''; img-src '\''self'\'' data:; font-src '\''self'\'';" always;
# Caching configuration for static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 30d;
@ -20,4 +22,4 @@ server {
location = /50x.html {
root /usr/share/nginx/html;
}
}
}