sablierapp / sablier

Start your containers on demand, shut them down automatically when there's no activity. Docker, Docker Swarm Mode and Kubernetes compatible.
https://sablierapp.dev/
GNU Affero General Public License v3.0
1.46k stars 48 forks source link

Feature Request: Change strategy based on endpoint #376

Closed TheRedCyclops closed 2 months ago

TheRedCyclops commented 3 months ago

Is there a way for all requests to use the dynamic strategy except if they're going to the /api endpoint?

acouvreur commented 3 months ago

You should be able to create two different routes using your reverse proxy. Then define the proper middleware on each route.

The Sablier middleware does not make decision based on the route or anything else.

If your this cannot be solved using two routes, please explain your setup in detail as why you cannot do that.

Thanks! 😀

TheRedCyclops commented 2 months ago

after actually using sablier I realized how to actually do that, thanks for the help!