@@ -158,7 +158,8 @@ type BasicAuth struct {
158158// +kubebuilder:validation:XValidation:message="when file is set, mode must be 'File'",rule="self.file != null ? self.mode == 'File' : true"
159159// +kubebuilder:validation:XValidation:message="when remote is set, mode must be 'Remote'",rule="self.remote != null ? self.mode == 'Remote' : true"
160160type JWTAuth struct {
161- // Realm used by NGINX `auth_jwt` directive.
161+ // Realm used by NGINX `auth_jwt` directive
162+ // https://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html#auth_jwt
162163 // Configures "realm="<realm_value>" in WWW-Authenticate header in error page location.
163164 //
164165 // +optional
@@ -181,6 +182,7 @@ type JWTAuth struct {
181182
182183 // Leeway is the acceptable clock skew for exp/nbf checks.
183184 // Configures `auth_jwt_leeway` directive.
185+ // https://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html#auth_jwt_leeway
184186 // Example: "auth_jwt_leeway 60s".
185187 //
186188 // +optional
@@ -190,6 +192,7 @@ type JWTAuth struct {
190192 // Type sets token type: signed | encrypted | nested.
191193 // Default: signed.
192194 // Configures `auth_jwt_type` directive.
195+ // https://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html#auth_jwt_type
193196 // Example: "auth_jwt_type signed;".
194197 //
195198 // +optional
@@ -198,6 +201,7 @@ type JWTAuth struct {
198201
199202 // KeyCache is the cache duration for keys.
200203 // Configures auth_jwt_key_cache directive.
204+ // https://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html#auth_jwt_key_cache
201205 // Example: "auth_jwt_key_cache 10m".
202206 //
203207 // +optional
@@ -257,6 +261,7 @@ type JWTFileKeySource struct {
257261
258262 // KeyCache is the cache duration for keys.
259263 // Configures `auth_jwt_key_cache` directive.
264+ // https://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html#auth_jwt_key_cache
260265 // Example: "auth_jwt_key_cache 10m;".
261266 //
262267 // +optional
@@ -283,6 +288,7 @@ type JWKSCache struct {
283288
284289 // Levels specifies the directory hierarchy for cached files.
285290 // Used in `proxy_cache_path` directive.
291+ // https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path
286292 // Example: "levels=1:2".
287293 //
288294 // +optional
0 commit comments