Refactor nginx configuration to remove duplicate texture proxy cache zone definition
This commit is contained in:
@@ -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 {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
@@ -5,10 +9,6 @@ server {
|
|||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.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
|
# Serve static files, fallback to index.html for SPA routing
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user