Skip to content

Commit 802bf24

Browse files
committed
remove http cache for jwks
1 parent 6b5ea85 commit 802bf24

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

internal/configs/version2/nginx-plus.virtualserver.tmpl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ map $request_method $cache_purge_{{ replaceAll $l.Cache.ZoneName "-" "_" }} {
115115
{{- end }}
116116
{{- end }}
117117

118-
{{- with $s.JWKSAuthEnabled }}
119-
proxy_cache_path /var/cache/nginx/jwks_uri_{{$s.VSName}} levels=1 keys_zone=jwks_uri_{{$s.VSName}}:1m max_size=10m;
120-
{{- end }}
121-
122118
{{- if and $s.OIDC $s.OIDC.PKCEEnable }}
123119
include oidc/oidc_pkce_supplements.conf;
124120
{{- end }}
@@ -290,10 +286,6 @@ server {
290286
internal;
291287
proxy_method GET;
292288
proxy_set_header Content-Length "";
293-
{{- if .KeyCache }}
294-
proxy_cache jwks_uri_{{ $s.VSName }};
295-
proxy_cache_valid 200 12h;
296-
{{- end }}
297289
{{- with .JwksURI }}
298290
{{- if .JwksSNIEnabled }}
299291
proxy_ssl_server_name on;

0 commit comments

Comments
 (0)