configuraciones

This commit is contained in:
2025-08-04 11:55:39 -06:00
parent 4bc8a92021
commit 01b809beb2
4 changed files with 16 additions and 3 deletions

View File

@@ -17,13 +17,26 @@ http {
server {
listen 80;
server_name localhost;
server_name efc-aduanasoft.com www.efc-aduanasoft.com localhost;
root /usr/share/nginx/html;
index index.html;
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
location / {
try_files $uri $uri/ /index.html;
}
# Gzip compression
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml text/javascript application/javascript application/xml+rss application/json;
}
}