From 3a1d5bb03acd6bbe9bb68852d45bfc3cd6bb7e5a Mon Sep 17 00:00:00 2001 From: Andre Zoledziowski Date: Mon, 21 Jan 2019 13:54:21 +0100 Subject: [PATCH] Added missing experimental SESSION API --- Dockerfile | 1 + README.md | 1 + haproxy.cfg | 1 + 3 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 090b438..0a6d35e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ ENV AUTH=0 \ POST=0 \ SECRETS=0 \ SERVICES=0 \ + SESSION=0 \ SWARM=0 \ SYSTEM=0 \ TASKS=0 \ diff --git a/README.md b/README.md index 818e16b..7b015fe 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ does not need. - `NODES` - `PLUGINS` - `SERVICES` +- `SESSION` - `SWARM` - `SYSTEM` - `TASKS` diff --git a/haproxy.cfg b/haproxy.cfg index fd27a33..3a5c677 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -59,6 +59,7 @@ frontend dockerfrontend http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/post } ! { env(POST) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/secrets } ! { env(SECRETS) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/services } ! { env(SERVICES) -m bool } + http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/session } ! { env(SESSION) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/swarm } ! { env(SWARM) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/system } ! { env(SYSTEM) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/tasks } ! { env(TASKS) -m bool }