mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #1040] auth-file settings ignored #731
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#731
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CountMurphy on GitHub (Feb 29, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1040
🐞 Describe the bug
Just installed on Arch by the ntfysh package. My
/etc/ntfy/server.ymlhas the following three lines:Now the server does indeed start on port 8082, so I know ntfy is reading the config. The permissions on the directory are
When I attempt to create a new user with
ntfy user add --role=admin NameI get:The user.db file is also not created at service start.
💻 Components impacted
ntfy server
💡 Screenshots and/or logs
🔮 Additional context
Additionally, the deny-all setting is also ignored and the server is publicly accessible.
@wunter8 commented on GitHub (Feb 29, 2024):
I'd be happy to help on Discord! It's a bit hard to go back and forth here.
(But in essence, I'm guessing the problem is that the systemd service runs as the ntfy user, whereas
ntfy user add ...runs as your user, so it's looking at~/.config/ntfy/server.ymlinstead of/etc/ntfy/server.yml, so it doesn't know where the auth-file is. You can eithersudo -u ntfy ntfy user add ...orntfy user --auth-file /Raid/ntfy/user.db add ...)@CountMurphy commented on GitHub (Feb 29, 2024):
Also tried running as the ntfy user, exact same result. I've just joined. What channel should I join, or should I DM you?
@CountMurphy commented on GitHub (Feb 29, 2024):
Well I did a dumb. My yml was missing a whitespace character before auth-file. Seems to be working now