Comment 1 for bug 2009734

Revision history for this message
Haw Loeung (hloeung) wrote :

The "extra-config" is really for additional and custom Nginx configs. We don't really parse what's specified here to work out what options should also be added on the HAProxy side of things.

For HAProxy, we added "haproxy-extra-configs" per LP:1976176. I think this should do what you want:

| locations:
| /:
| backend-check-method: GET
| backend-check-path: /health
| backend-inter-time: 10s
| backend-maxconn: 50
| backends: ['1.1.1.1:80']
| backend-options: ['http-request set-header X-Forwarded-For %[src]','timeout server 300s']
| extra-config:
| - client_max_body_size 15m
| - proxy_cache_bypass \$cookie_indico_session
| - proxy_read_timeout 300s
| haproxy-extra-configs:
| - timeout server 300s

Let me know if not.