feat(ingress-nginx): add support for http caching on ingress
This commit is contained in:
parent
36f61bfc2a
commit
60d5286042
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Reference in a new issue