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

32 lines
1.1 KiB
Text
Raw Normal View History

2024-11-04 13:52:16 -06:00
# Include a common header (Upgrade Websockets, Add Upstreams, Upgrade HTTP to HTTPS)
include snippets/global/common-boilerplate.conf;
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-04 13:52:16 -06:00
server_name auth.shad.moe www.auth.shad.moe;
ssl_certificate /etc/letsencrypt/live/auth.shad.moe/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/auth.shad.moe/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/auth.shad.moe/fullchain.pem;
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
proxy_pass http://100.64.4.100:8123/;
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
}