NGINX_SNIPPET

gafaelfawr.constants.NGINX_SNIPPET = 'auth_request_set $auth_error_body $upstream_http_x_error_body;\nauth_request_set $auth_ratelimit_limit $upstream_http_x_ratelimit_limit;\nauth_request_set $auth_ratelimit_remaining $upstream_http_x_ratelimit_remaining;\nauth_request_set $auth_ratelimit_reset $upstream_http_x_ratelimit_reset;\nauth_request_set $auth_ratelimit_resource $upstream_http_x_ratelimit_resource;\nauth_request_set $auth_ratelimit_used $upstream_http_x_ratelimit_used;\nauth_request_set $auth_retry_after $upstream_http_retry_after;\nauth_request_set $auth_www_authenticate $upstream_http_www_authenticate;\nauth_request_set $auth_status $upstream_http_x_error_status;\nmore_set_headers "X-RateLimit-Limit: $auth_ratelimit_limit";\nmore_set_headers "X-RateLimit-Remaining: $auth_ratelimit_remaining";\nmore_set_headers "X-RateLimit-Reset: $auth_ratelimit_reset";\nmore_set_headers "X-RateLimit-Resource: $auth_ratelimit_resource";\nmore_set_headers "X-RateLimit-Used: $auth_ratelimit_used";\nerror_page 403 = @autherror;\n'

Code snippet to put into NGINX configuration for each ingress.