Hi All, So I’m building a brand new server, latest TrueNAS (25.04) and I wanted to get Authentik up and running as an app to do some light work (mainly for Authentication to a game server management system) however, I wanted it to work properly and be able to send out emails.
On all the guides I can find, you need to edit a .env file, which I just can’t seem to do anywhere.
Has anyone here managed to get the email configuration added to Authentik running as a TrueNAS App? Or is this something that’s just not possible at the moment? Does TrueNAS need to allow more variable editing on the App Setup GUI?
How are you trying to deploy authentik? own compose file or the prebuild truenas app?
Afaik the prebuild app doesn’t use a .env file. But there is an option during the app setup that lets you add environment variables, so you should be able to add them there.
If you’re using your own compose file you have to create the .env file yourself and point your compose file to it.
Hi, thanks for replying! It’s straight off the TrueNAS catalog. So I did try using the variables but that just seems to completely break the App with no recourse, I simply have to wipe the entire app and start from scratch.
Below is what I need to get into .env file if it existed:
I think it’s fundamentally something they need to add to the App install screen I think, Who would need to be made aware of this? As in, Authentik is on the official TrueNAS catalog as a “community” app, where could I report or request this change so that the email settings variables can be added?
I’m quite new to the whole TrueNAS thing, apologies if these are stupid questions.
HAHA! See, this is why I needed to ask, thanks! I’ll give it a go later today.
For future reference though, how would I bring up these kind of requests? Plex for example, has loads of custom variables for things like plex pass, server registering, GPU passthrough etc…
So I assume it’s entirely possible for someone to edit that installation screen and have an optional “email settings” part. It is an Authentication service at the end of the day, being able to do self-service email password resets is a part of the app.
Since i’m using my own compose stacks managed by portainer to deploy my apps, i can’t comment on many of the exposed options, but for gpu’s there’s a simple checkbox you have to tick to enable gpu support.
If you think it’s an important option for authentik to have the e-mail setup exposed in the gui wizard, you can open an issue on the apps github at GitHub - truenas/charts: TrueNAS SCALE Apps Catalogs & Charts
If you persuade the maintainer to expose it, it will likely be exposed after an app update.
That worked an absolute treat, email flow is all working as expected, thanks! I will keep that in-mind for the future if I ever need to add extra variables.
I will open an issue anyway as it’s a pretty fundamental feature for Authentik, getting users to self-serve password recovery is one of those features that saves everyone time and hassle.
Just wanted to update this post in-case anyone comes across it, they accepted my changes on GitHub and it’s already applied, setup a new Authentik server now and there’s a tick box for “email settings” and all the fields are now easily accessable from there.
Thanks for pointing me in the direction of GitHub to get these changes in!