diff --git a/Dockerfile b/Dockerfile index 97b9f09..3289f2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ ENV ALLOW_RESTARTS=0 \ PING=1 \ PLUGINS=0 \ POST=0 \ + DELETE=0 \ SECRETS=0 \ SERVICES=0 \ SESSION=0 \ diff --git a/README.md b/README.md index c932598..7a663fb 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,8 @@ by default. Maximum caution when enabling these. - `AUTH` - `SECRETS` - `POST`: When disabled, only `GET` and `HEAD` operations are allowed, meaning - any section of the API is read-only. + any section of the API is read-only. Note that this is a global +- `DELETE`: Enables or disables all `DELETE` operations #### Not always needed diff --git a/haproxy.cfg b/haproxy.cfg index 7d77bd7..ae4b901 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -28,13 +28,13 @@ defaults load-server-state-from-file global # Use provided example error pages - # errorfile 400 /usr/local/etc/haproxy/errors/400.http - # errorfile 403 /usr/local/etc/haproxy/errors/403.http - # errorfile 408 /usr/local/etc/haproxy/errors/408.http - # errorfile 500 /usr/local/etc/haproxy/errors/500.http - # errorfile 502 /usr/local/etc/haproxy/errors/502.http - # errorfile 503 /usr/local/etc/haproxy/errors/503.http - # errorfile 504 /usr/local/etc/haproxy/errors/504.http + errorfile 400 /usr/local/etc/haproxy/errors/400.http + errorfile 403 /usr/local/etc/haproxy/errors/403.http + errorfile 408 /usr/local/etc/haproxy/errors/408.http + errorfile 500 /usr/local/etc/haproxy/errors/500.http + errorfile 502 /usr/local/etc/haproxy/errors/502.http + errorfile 503 /usr/local/etc/haproxy/errors/503.http + errorfile 504 /usr/local/etc/haproxy/errors/504.http backend dockerbackend server dockersocket /var/run/docker.sock