Nginx-Configurations/http.d/map.gpoc.konpeki.solutions

29 lines
1,008 B
Text
Raw Normal View History

2024-11-04 11:09:00 -06:00
proxy_cache_path /var/www/cache levels=1:2 keys_zone=map:8m max_size=1g inactive=24h;
server {
2024-11-06 16:03:34 -06:00
server_name map.gpoc.konpeki.solutions www.map.gpoc.konpeki.solutions;
2024-11-04 13:52:16 -06:00
2024-11-04 14:33:00 -06:00
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;
2024-11-04 13:52:16 -06:00
include snippets/global/common-ssl.conf;
include snippets/proxy/common-proxy-headers.conf;
2024-11-04 11:09:00 -06:00
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;
2024-11-04 13:52:16 -06:00
2024-11-04 14:01:25 -06:00
proxy_pass http://mccp-map/;
2024-11-04 11:09:00 -06:00
}
2024-11-04 13:52:16 -06:00
include snippets/global/errors/http-cat-error-pages.conf;
2024-11-04 11:09:00 -06:00
}