1
0
Fork 0

feat(ingress-nginx): add support for http caching on ingress

This commit is contained in:
Vojtěch Mareš 2024-08-21 11:05:43 +02:00
parent 36f61bfc2a
commit 60d5286042
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -46,3 +46,8 @@ spec:
use-proxy-protocol: "true"
use-forwarded-headers: "true"
enable-real-ip: "true"
http-snippet: |
proxy_cache_path /tmp/nginx-cache levels=1:2 keys_zone=static-cache:2m max_size=100m inactive=7d use_temp_path=off;
proxy_cache_key $scheme$proxy_host$request_uri;
proxy_cache_lock on;
proxy_cache_use_stale updating;