Skip to content

Commit 146e687

Browse files
committed
added open close to sticky
1 parent 18179c7 commit 146e687

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,10 +888,14 @@ services:
888888
- traefik.http.routers.${SWARM_STACK_NAME}_webserver_sticky.rule=Path(`/v0/projects`) ||
889889
Path(`/v0/projects:clone`) ||
890890
PathRegexp(`^/v0/projects/[0-9a-fA-F-]+/nodes/[0-9a-fA-F-]+:stop`) ||
891+
PathRegexp(`^/v0/projects/[0-9a-fA-F-]+/nodes/[0-9a-fA-F-]+:open`) ||
892+
PathRegexp(`^/v0/projects/[0-9a-fA-F-]+/nodes/[0-9a-fA-F-]+:close`) ||
891893
PathRegexp(`^/v0/storage/locations/[0-9]+/paths/.+:size`) ||
892894
PathRegexp(`^/v0/storage/locations/[0-9]+/-/paths:batchDelete`) ||
893895
PathRegexp(`^/v0/storage/locations/[0-9]+/export-data`) ||
894896
PathRegexp(`^/v0/tasks-legacy/.+`)
897+
# NOTE: the sticky router must have a higher priority than the webserver router but below dy-proxies
898+
- traefik.http.routers.${SWARM_STACK_NAME}_webserver_sticky.priority=7
895899
- traefik.http.routers.${SWARM_STACK_NAME}_webserver_sticky.entrypoints=http
896900
- traefik.http.routers.${SWARM_STACK_NAME}_webserver_sticky.service=${SWARM_STACK_NAME}_webserver_sticky
897901
- traefik.http.routers.${SWARM_STACK_NAME}_webserver_sticky.middlewares=${SWARM_STACK_NAME}_gzip@swarm, ${SWARM_STACK_NAME_NO_HYPHEN}_sslheader@swarm, ${SWARM_STACK_NAME}_webserver_retry

0 commit comments

Comments
 (0)