هذا الالتزام موجود في:
2025-10-15 17:22:06 +03:00
التزام bf22a0aeb6
4 ملفات معدلة مع 253 إضافات و0 حذوفات

29
nginx/conf.d/default.conf Normal file
عرض الملف

@@ -0,0 +1,29 @@
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
}
# Enable gzip compression
gzip on;
gzip_types text/css application/javascript;
# Cache control for static assets
location ~* \.(css|js)$ {
expires 1y;
add_header Cache-Control "public, no-transform";
}
# Don't cache HTML files
location ~* \.html$ {
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}