Mention DELETE in readme and dockerfile

This commit is contained in:
folex 2020-08-14 13:18:53 +03:00
parent de847e7e46
commit da23591b86
3 changed files with 10 additions and 8 deletions

View File

@ -19,6 +19,7 @@ ENV ALLOW_RESTARTS=0 \
PING=1 \
PLUGINS=0 \
POST=0 \
DELETE=0 \
SECRETS=0 \
SERVICES=0 \
SESSION=0 \

View File

@ -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

View File

@ -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