- Remove executable permissions from configuration files (.editorconfig, .env.example, .gitignore) - Remove executable permissions from documentation files (README.md, LICENSE, SECURITY.md) - Remove executable permissions from web assets (HTML, CSS, JS files) - Remove executable permissions from data files (JSON, SQL, YAML, requirements.txt) - Remove executable permissions from source code files across all apps - Add executable permissions to Python
19 lines
534 B
Plaintext
19 lines
534 B
Plaintext
# Add to /etc/nginx/sites-available/aitbc.conf
|
|
|
|
# Serve production assets
|
|
location /assets/ {
|
|
alias /var/www/html/assets/;
|
|
expires 1y;
|
|
add_header Cache-Control "public, immutable";
|
|
add_header X-Content-Type-Options nosniff;
|
|
|
|
# Gzip compression
|
|
gzip on;
|
|
gzip_types text/css application/javascript image/svg+xml;
|
|
}
|
|
|
|
# Security headers
|
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
|
add_header X-Content-Type-Options "nosniff" always;
|