Refactor nginx configuration to remove duplicate texture proxy cache zone definition

This commit is contained in:
MayaTheShy
2026-03-22 02:42:12 -04:00
parent 78674714b1
commit 48d34a5eeb

View File

@@ -1,3 +1,7 @@
# Texture proxy cache zone (100MB, inactive entries purged after 7 days)
proxy_cache_path /tmp/nginx_texture_cache levels=1:2 keys_zone=textures:10m
max_size=100m inactive=7d use_temp_path=off;
server {
listen 80;
server_name _;
@@ -5,10 +9,6 @@ server {
root /usr/share/nginx/html;
index index.html;
# Texture proxy cache zone (100MB, inactive entries purged after 7 days)
proxy_cache_path /tmp/nginx_texture_cache levels=1:2 keys_zone=textures:10m
max_size=100m inactive=7d use_temp_path=off;
# Serve static files, fallback to index.html for SPA routing
location / {
try_files $uri $uri/ /index.html;