mirror of
https://github.com/Tecnativa/docker-socket-proxy
synced 2025-07-05 06:42:36 +00:00
remove tunnel timeout configuration as not used.
remove reference from readme. revert to project defaults for server and client timeout.
This commit is contained in:
parent
c3322f09a1
commit
c66d752741
@ -34,9 +34,7 @@ ENV ALLOW_RESTARTS=0 \
|
||||
TIMEOUT_HTTP_REQUEST=10s \
|
||||
TIMEOUT_QUEUE=1m \
|
||||
TIMEOUT_CONNECT=10s \
|
||||
TIMEOUT_CLIENT=50s \
|
||||
TIMEOUT_SERVER=50s \
|
||||
TIMEOUT_TUNNEL=3600s
|
||||
|
||||
TIMEOUT_CLIENT=10m \
|
||||
TIMEOUT_SERVER=10m
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg.template
|
||||
|
@ -150,9 +150,8 @@ The Docker Socket Proxy allows configuration of various timeouts using environme
|
||||
- [`TIMEOUT_HTTP_REQUEST`](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#timeout%20http-request): Maximum time to wait for a complete HTTP request. Default is `10s`.
|
||||
- [`TIMEOUT_QUEUE`](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#timeout%20queue): Maximum time a request can remain in the queue. Default is `1m`.
|
||||
- [`TIMEOUT_CONNECT`](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#timeout%20connect): Maximum time to wait for a connection attempt to a backend server. Default is `10s`.
|
||||
- [`TIMEOUT_CLIENT`](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#timeout%20client): Maximum inactivity time on the client side. Default is `50s`.
|
||||
- [`TIMEOUT_SERVER`](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#timeout%20server): Maximum inactivity time on the server side. Default is `50s`.
|
||||
- [`TIMEOUT_TUNNEL`](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#timeout%20tunnel): Maximum inactivity time for a tunnel connection. Default is `3600s` (1 hour).
|
||||
- [`TIMEOUT_CLIENT`](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#timeout%20client): Maximum inactivity time on the client side. Default is `10m`.
|
||||
- [`TIMEOUT_SERVER`](https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#timeout%20server): Maximum inactivity time on the server side. Default is `10m`.
|
||||
|
||||
To set these timeouts, you can pass them as environment variables when starting the Docker container. For example:
|
||||
|
||||
|
@ -21,7 +21,6 @@ sed -e "s|\${BIND_CONFIG}|$BIND_CONFIG|g" \
|
||||
-e "s|\${TIMEOUT_CONNECT}|$TIMEOUT_CONNECT|g" \
|
||||
-e "s|\${TIMEOUT_CLIENT}|$TIMEOUT_CLIENT|g" \
|
||||
-e "s|\${TIMEOUT_SERVER}|$TIMEOUT_SERVER|g" \
|
||||
-e "s|\${TIMEOUT_TUNNEL}|$TIMEOUT_TUNNEL|g" \
|
||||
/usr/local/etc/haproxy/haproxy.cfg.template > /usr/local/etc/haproxy/haproxy.cfg
|
||||
|
||||
# first arg is `-f` or `--some-option`
|
||||
|
@ -20,7 +20,6 @@ defaults
|
||||
timeout connect ${TIMEOUT_CONNECT}
|
||||
timeout client ${TIMEOUT_CLIENT}
|
||||
timeout server ${TIMEOUT_SERVER}
|
||||
timeout tunnel ${TIMEOUT_TUNNEL}
|
||||
timeout http-keep-alive 10s
|
||||
timeout check 10s
|
||||
maxconn 3000
|
||||
|
Loading…
Reference in New Issue
Block a user