diff --git a/ts/smartnginx.snippets.ts b/ts/smartnginx.snippets.ts index 777c362..e98ad5e 100644 --- a/ts/smartnginx.snippets.ts +++ b/ts/smartnginx.snippets.ts @@ -99,6 +99,8 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; + proxy_next_upstream error timeout http_404 http_429 http_500 http_502; + proxy_next_upstream_tries 5; proxy_pass http://${hostNameArg}; } }