Skip to content
Snippets Groups Projects
Commit aaf2c6e2 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

have nginx wait a little longer for PaymentServer v1/ endpoint responses

parent 516daae1
No related branches found
No related tags found
2 merge requests!300merge develop into production,!299Avoid an nginx timeout on the redemption endpoint
Pipeline #2040 failed
......@@ -254,6 +254,17 @@ in {
# we pass less scanning spam on to our backend
# Want a regex instead? try locations."~ /v\d+/"
proxyPass = "http://127.0.0.1:${internalHttpPort}";
# The redemption endpoint can intentionally delay its response for
# up to 600 seconds for a cheap kind of server-push when payment
# completes. Let that timeout control how long the connection stays
# open. PaymentServer does not accept configuration for that
# duration so we also hard-code it here.
#
# http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout
extraConfig = ''
proxy_read_timeout = 660;
'';
};
locations."/metrics" = {
# Only allow our monitoringvpn subnet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment