mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-28 07:56:35 +01:00
This feature adds the capability to stop unregistered running instances upon startup. Previously, you had to stop running instances manually or issue an initial request that will shut down instances afterwards. With this change, all discovered instances will be shutdown. They need to be registered using labels. E.g.: sablier.enable=true Fixes #153
35 lines
1.1 KiB
Caddyfile
35 lines
1.1 KiB
Caddyfile
:80 {
|
|
route /dynamic/whoami {
|
|
sablier url=http://tasks.sablier:10000 names=e2e-whoami-1 session_duration=1m dynamic.display_name=Dynamic-Whoami dynamic.theme=hacker-terminal
|
|
reverse_proxy whoami:80
|
|
}
|
|
|
|
route /blocking/whoami {
|
|
sablier url=http://tasks.sablier:10000 names=e2e-whoami-1 session_duration=1m blocking.timeout=30s
|
|
reverse_proxy whoami:80
|
|
}
|
|
|
|
route /multiple {
|
|
sablier url=http://tasks.sablier:10000 names=e2e-whoami-1,e2e-nginx-1 session_duration=1m dynamic.display_name=Multiple-Whoami dynamic.theme=hacker-terminal
|
|
reverse_proxy /multiple/whoami whoami:80
|
|
reverse_proxy /multiple/nginx nginx:80
|
|
}
|
|
|
|
route /healthy/nginx {
|
|
sablier url=http://tasks.sablier:10000 names=e2e-nginx-1 session_duration=1m dynamic.display_name=Healthy-Nginx dynamic.theme=hacker-terminal
|
|
reverse_proxy nginx:80
|
|
}
|
|
|
|
route /group {
|
|
sablier url=http://tasks.sablier:10000 {
|
|
group E2E
|
|
session_duration 1m
|
|
dynamic {
|
|
display_name Group E2E
|
|
theme hacker-terminal
|
|
}
|
|
}
|
|
reverse_proxy whoami:80
|
|
}
|
|
}
|