Loading nginx/conf.d/default.conf +2 −3 Original line number Diff line number Diff line Loading @@ -5,19 +5,18 @@ map $http_upgrade $connection_upgrade { server { listen 80 default_server; server_name 0.0.0.0; return 301 https://$host$request_uri; } server { listen 443 ssl default_server; server_name 0.0.0.0; include /etc/nginx/snippets/ssl-well-known.conf; location / { include /etc/nginx/snippets/cache-usage.conf; add_header X-Frame-Options "SAMEORIGIN"; proxy_set_header Host $host; Loading nginx/snippets/cache-definition.conf +4 −6 Original line number Diff line number Diff line Loading @@ -2,17 +2,15 @@ # Por defecto, no se usa caché map $http_host $proxy_cache_zone { hostnames; atlas.* nginx_cache; atlas.* atlas_cache; default off; } # Preparación de evaluación de bypass de caché para un dominio concreto # Provisionalmente, por defecto devuelve 0 porque interesa cachear todo # Cuando no interese, devolver por defecto 1 map $arg_request $proxy_cache_bypass_atlas_value { GetMap 0; GetTile 0; default 0; default 1; } # Evaluación de bypass de caché según dominio Loading @@ -30,8 +28,8 @@ map $http_host $cache_control_value { default "no-cache"; } proxy_cache_path /var/nginx/cache proxy_cache_path /var/nginx/atlas_cache levels=1:2 keys_zone=nginx_cache:100m keys_zone=atlas_cache:100m inactive=24h max_size=5g; Loading
nginx/conf.d/default.conf +2 −3 Original line number Diff line number Diff line Loading @@ -5,19 +5,18 @@ map $http_upgrade $connection_upgrade { server { listen 80 default_server; server_name 0.0.0.0; return 301 https://$host$request_uri; } server { listen 443 ssl default_server; server_name 0.0.0.0; include /etc/nginx/snippets/ssl-well-known.conf; location / { include /etc/nginx/snippets/cache-usage.conf; add_header X-Frame-Options "SAMEORIGIN"; proxy_set_header Host $host; Loading
nginx/snippets/cache-definition.conf +4 −6 Original line number Diff line number Diff line Loading @@ -2,17 +2,15 @@ # Por defecto, no se usa caché map $http_host $proxy_cache_zone { hostnames; atlas.* nginx_cache; atlas.* atlas_cache; default off; } # Preparación de evaluación de bypass de caché para un dominio concreto # Provisionalmente, por defecto devuelve 0 porque interesa cachear todo # Cuando no interese, devolver por defecto 1 map $arg_request $proxy_cache_bypass_atlas_value { GetMap 0; GetTile 0; default 0; default 1; } # Evaluación de bypass de caché según dominio Loading @@ -30,8 +28,8 @@ map $http_host $cache_control_value { default "no-cache"; } proxy_cache_path /var/nginx/cache proxy_cache_path /var/nginx/atlas_cache levels=1:2 keys_zone=nginx_cache:100m keys_zone=atlas_cache:100m inactive=24h max_size=5g;