ntfy Token and Account menu
Hi, i've installed ntfy and i'm trying to add a auth token. The problem it's that there is no "Account" menu on the app or any way to add it. I've read the ntfy docs and tried to use the cli inside the container, but i get this error:
"option auth-file not set; auth is unconfigured for this server"
Is there any way to solve it? Thank you for your help π
2 Replies
Hello,
Looking at this : https://docs.ntfy.sh/config/#example-config
I can see you can define the auth file path as an environment variable.
I can suggest adding this in your user-config
NTFY_AUTH_FILE=/etc/ntfy/auth.db
You may also want to set NTFY_AUTH_DEFAULT_ACCESS=deny-all, for strict private access.
I didn't found a page with environment variable with possible value, this would be simpler.
Let me know if you manage to make it work, I'll be interested.
PS : If you are not familiar with user-config : https://runtipi.io/docs/guides/customize-app-config
Just tried, it works.
I suggest to add at least these :
Thank you @Lancelot, that worked perfect. I've updated the config file using the RunTipi tutorial, and adding only that lines:
After that you have to create the user and assing a role to it using the ntfy docker bash, i've followed this tutorial:
https://docs.ntfy.sh/config/#access-control
Now i can login and create access tokens. Thank you for the help!
Configuration - ntfy
Send push notifications to your phone via PUT/POST