Skip to content

ntfy user commands don't work if auth_file is used in config instead of auth-file #344

Closed
@Histalek

Description

@Histalek

Essentially what the title says.

Deployment / Version used

podman run -d -v ./server.yml:/etc/ntfy/server.yml:ro -p 80:80 --name=ntfy docker.io/binwiederhier/ntfy:v1.27.2@sha256:19eeaec60fda9dfd4757f79610494f5ec78ece274c995f032edc68238720e0a2 serve

Reproduction

  1. specify auth_file in server.yml e.g. auth_file: "/var/lib/ntfy/auth.db"
  2. start container (see above)
  3. exec into container e.g. podman exec -it ntfy /bin/sh
  4. execute ntfy user command and observe output:
$ ntfy user add myuser mytopic rw
option auth-file not set; auth is unconfigured for this server

Once I switch from auth_file to auth-file in the server.yml everything works. This contradicts the statement at the top of the server.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    serverRelates to the main binary (server or client)🪲 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions