proxy_cache_path /var/www/cache levels=1:2 keys_zone=map:8m max_size=1g inactive=24h; server { server_name map.gpoc.konpeki.solutions www.map.gpoc.konpeki.solutions; ssl_certificate /etc/letsencrypt/live/map.gpoc.konpeki.solutions/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/map.gpoc.konpeki.solutions/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/map.gpoc.konpeki.solutions/fullchain.pem; include snippets/global/common-ssl.conf; include snippets/proxy/common-proxy-headers.conf; location / { proxy_set_header Host $host; proxy_cache map; proxy_cache_key "$host$uri"; proxy_cache_valid 200 302 60m; proxy_cache_valid 404 10m; proxy_cache_use_stale error timeout invalid_header updating http_500 http_503 http_504; proxy_connect_timeout 10; proxy_pass http://mccp-map/; } include snippets/global/errors/http-cat-error-pages.conf; }