mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-14 07:33:36 +01:00
Middleware compose for provider files? #20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @polds on GitHub (Jan 4, 2025).
Is it possible to use the "middleware compose" logic for file provider orchestrators?
I tried creating a
config/middlewares/doRedirect.ymlwith:And then setting this in one of my providers:
But I get the error:
@yusing commented on GitHub (Jan 4, 2025):
Yes it is possible, seems to be a bug.
Did this line appear in log
middleware loaded name=doRedirect@file src=doRedirect.yml?I've tested on latest v0.7.7 and v0.8 nightly, both works.
@polds commented on GitHub (Jan 4, 2025):
Hmm.. it's working now for some reason. Maybe I hadn't reloaded the config. Thanks for the fast response!
@yusing commented on GitHub (Jan 4, 2025):
Middleware compose files does not support hot-reload for now. Will definitely work on it!
@polds commented on GitHub (Jan 4, 2025):
Oooh! Gotcha. Thanks again!