How to use Authelia with ForwardAuth on different server? #7224
-
Hi :) First of all, I absolutely love Authelia! I have the following question:
Now I have a webapp without authentication, and I want to handle forward auth via Caddy and Authelia. Currently I have the following config:
It all works well. However, my understanding is it only works because caddy knows and can reach Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please note this response was created using generative AI leveraging previously available information from the repository. This information may be helpful however it is our strong recommendation that you carefully consider the information before blindly applying it. Hello! I'm glad to hear you're enjoying Authelia! Based on your scenario, if Authelia is running on a different server and the App Caddy can only reach Authelia via
In this configuration:
Make sure that the SSL/TLS certificates are properly configured on If you have any more questions or need further assistance, feel free to ask! This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
You'd either have to expose the port say 8080, and use |
Beta Was this translation helpful? Give feedback.
You'd either have to expose the port say 8080, and use
http://sso.example.com:8080
or you'd have to configure caddy in a way where it doesn't change the X-Fowarded-* headers for the /api/verify and /api/authz/* paths and use the https://sso.example.com url (with the path suffixes).