Skip to content

Commit

Permalink
fix: address PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Jun 14, 2024
1 parent dff3be0 commit cd38f17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drydock/patches/static-cache-config
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
# Cache settings
proxy_cache_valid 404 10m;
proxy_cache_use_stale error timeout updating http_404 http_500 http_502 http_503 http_504;
proxy_cache static-cache;
proxy_cache_valid any 120m;
proxy_cache_bypass $http_x_purge;
add_header X-Cache-Status $upstream_cache_status;
7 changes: 7 additions & 0 deletions drydock/templates/drydock/k8s/ingress/static-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ metadata:
nginx.ingress.kubernetes.io/proxy-body-size: 8m
nginx.ingress.kubernetes.io/proxy-buffering: "on"
nginx.ingress.kubernetes.io/configuration-snippet: |
# Cache settings
proxy_cache_valid 404 10m;
proxy_cache_use_stale error timeout updating http_404 http_500 http_502 http_503 http_504;
proxy_cache static-cache;
proxy_cache_valid any 120m;
proxy_cache_bypass $http_x_purge;
add_header X-Cache-Status $upstream_cache_status;
{{ patch("static-cache-config") | indent(6)}}
spec:
ingressClassName: nginx
Expand Down

0 comments on commit cd38f17

Please sign in to comment.