Raise consul nginx proxy_read_timeout to 360s (#582)

OpenTofu's consul backend holds its state lock via blocking KV GETs that use consul's default 5m wait (plus up to wait/16 jitter). The consul.service.consul proxy uses the nginx module's 90s proxy_read_timeout, so nginx 504s the long-poll and the lock is lost mid-apply.

- set nginx::proxy_read_timeout to 360s for the consul role

Reviewed-on: #582
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
This commit was merged in pull request #582.
This commit is contained in:
2026-11-23 21:35:54 +11:00
committed by BenVincent
parent 81262ee73e
commit e057ca9147
@@ -44,6 +44,7 @@ profiles::nginx::simpleproxy::nginx_aliases:
profiles::nginx::simpleproxy::proxy_port: 8500
profiles::nginx::simpleproxy::proxy_path: '/'
nginx::client_max_body_size: 512M
nginx::proxy_read_timeout: '360s'
# consul
profiles::consul::client::node_rules: