Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullify / unset default-user and default-password in client configuration? #829

Closed
tomeon opened this issue Aug 2, 2023 · 0 comments
Closed
Labels
🪲 bug Something isn't working question This is a question server Relates to the main binary (server or client)

Comments

@tomeon
Copy link

tomeon commented Aug 2, 2023

Nullify / unset default-user and default-password in client configuration

First, thanks for ntfy -- it was easy to set up a self-hosted instance and has been a real treat to use.

I am using ntfy version 2.5.0 on NixOS 23.05. Here's my situation, slightly fictionalized for brevity and security:

--- 
# ~/.config/ntfy/client.yml

default-user: myuser
default-password: hunter2
default-host: https://ntfy.local # self-hosted, LAN-only
default-command: issue-desktop-notification

subscribe:
  - topic: thing
  - topic: other-thing
  - topic: yet-another-thing
  - topic: https://ntfy.sh/needs-to-use-public-host-for-reasons
    user: ??? # don't use `user` for public instance
    password: ??? # don't use `password` for public instance

My question is: what, if anything, can I use in place of the ???s above in order to disable authentication for the topic https://ntfy.sh/needs-to-use-public-host-for-reasons? I've tried using each of the four combinations in the Cartesian product of {"", null} x {"", null} for user and password, but none them work (which is to say that I continue to get 401s from ntfy sub --from-config).

Am I holding it wrong? Or is this not possible at present? I can of course list user and password for each of the subscriptions on my self-hosted instance, which is effective but cumbersome.

Thank you!

@tomeon tomeon added the question This is a question label Aug 2, 2023
@binwiederhier binwiederhier added 🪲 bug Something isn't working server Relates to the main binary (server or client) labels Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working question This is a question server Relates to the main binary (server or client)
Projects
None yet
Development

No branches or pull requests

2 participants