-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help to convert a snippet to labels #642
Comments
You need to keep the parentheses in the labels as well. |
Ah! I followed the docs.
and
I will check this out as soon as I see our election results in France :) |
Unfortunately this does not change the error |
hey @wsw70 where you able to make authelia work at the end ? |
Authelia is working fine. What I could not (and still cannot) make work was the snippet in the labels. |
i am super curious as to how you made Authelia work without that snippet/label part.. i am trying to make it work with Caddy Docker Proxy and struggling, let me know if there is a way you could help (between french :) ) as for the conversion I get something like that, but cannot properly test it as i am struggling to make it work :
|
I am not sure I understand. I do use the snippet but it is defined in the main |
wasnt able to make it work, so i used Authentik and besides some few config left it works good... |
Looks really cool. It is a more complicated (and probably - complete) system compared to Authelia, though. Good luck! |
I'm using Authelia with caddy-docker-proxy successfully. These are the relevant labels in the Docker Compose config of my Caddy container:
(The 90 suffix is because I have multiple global configs/snippets etc. and I want to order them specifically. You can leave it off) And then for each container I want to proxy and put behind Authelia
Obviously you should change the domain and port |
Thank you for this @DonDebonair - helped me out with a solid working example there. Can you please help me out with another question about this config - What labels do I need to add If I want to bypass certain paths in TIA for any suggestions, cheers ! |
@accforgithubtest you wouldn't set labels for it. Instead, you'd have to make changes to your Authelia config to skip certain paths. |
I have the following snippet I would like to convert to labels (it works well when in the Caddyfile):
I tried to convert it to labels in Caddy's docker-compose (I did several versions, all failed):
When restarting Caddy, I get for each service that does an
import authenticate-with-caddy
an error message telling me that theauthenticate-with-authelia
directive is not recognized.Since it is not possible to debug snippets via the JSON configuration (they are merged at startup) I have no way to see how it is translated, and I suppose that there is an error in the translation.
The text was updated successfully, but these errors were encountered: