server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; # Tek sayfa; her yol index.html'e düşsün location / { try_files $uri $uri/ /index.html; add_header Cache-Control "no-cache, must-revalidate"; } # Ses dosyaları: byte-range (seek); iterasyon sırasında kısa cache location ~* \.(mp3|wav|ogg)$ { add_header Accept-Ranges bytes; add_header Cache-Control "no-cache, must-revalidate"; } location ~* \.(js|css|png|jpg|svg)$ { add_header Cache-Control "no-cache, must-revalidate"; } gzip on; gzip_types text/plain text/css application/javascript application/json image/svg+xml; gzip_min_length 1024; }