Open jakobwenzel opened 3 years ago
I faced the same scenario, I have my authelia and traefik in front of the setup and for it to work I did not require any of these changes on the nginx container, just the .env setting to enable proxy auth.
The only problem I am having with that is that it gets me authenticated with no admin permissions, so I am basically stuck with access to the application but no admin access.
yes that is something i need to add to the docs, someone on discord or reddit had the same issue. The problem is that you need to create the admin before enabling remote proxy auth (which i unintuitive). I will add a section to the docs detailing this and also put up some instructions on how to create the admin account if you by accident create the unpriveledged user before first creating a superuser.
Easiest for you for now would be just delete the DB, create an admin trough the setup menu and then enable proxy auth. Sorry for the inconvenience
yes that is something i need to add to the docs, someone on discord or reddit had the same issue. The problem is that you need to create the admin before enabling remote proxy auth (which i unintuitive). I will add a section to the docs detailing this and also put up some instructions on how to create the admin account if you by accident create the unpriveledged user before first creating a superuser.
Easiest for you for now would be just delete the DB, create an admin trough the setup menu and then enable proxy auth. Sorry for the inconvenience
I am the one from Reddit actually.
In the end what I ended up doing was:
Boom, everything working perfectly
The documentation on Reverse Proxy Auth includes an example on how to configure the nginx container to perform the necessary communication with Authelia. However, it is quite common to share multiple services behind a single reverse proxy. This single reverse proxy sits in front of nginx and already handles authentication.
The recipes-specific nginx then only needs to forward the auth header like this:
Clarifying the use case outlined in the documentation and maybe adding the case described here would be helpful.