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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login is disabled when NTFY_ENABLE_LOGIN: true #1075

Closed
akarabach opened this issue Mar 28, 2024 · 3 comments
Closed

Login is disabled when NTFY_ENABLE_LOGIN: true #1075

akarabach opened this issue Mar 28, 2024 · 3 comments
Labels
馃 bug Something isn't working

Comments

@akarabach
Copy link

馃悶 Describe the bug


version: "3"

services:
  ntfy:
    image: binwiederhier/ntfy
    container_name: ntfy
    command:
      - serve
    environment:
      NTFY_BASE_URL: https://ntfy.qwe.com
      NTFY_CACHE_FILE: /var/lib/ntfy/cache.db
      NTFY_AUTH_FILE: /var/lib/ntfy/user.db
      NTFY_AUTH_DEFAULT_ACCESS: deny-all
      NTFY_ATTACHMENT_CACHE_DIR: /var/lib/ntfy/attachments
      **NTFY_ENABLE_LOGIN: 'true'**
      NTFY_UPSTREAM_BASE_URL: https://ntfy.sh
    volumes:
      - /mnt/user/appdata/ntfy/cache:/var/cache/ntfy
      - /mnt/user/appdata/ntfy/etc:/etc/ntfy
      - /mnt/user/appdata/ntfy/lib:/var/lib/ntfy
    restart: always

When I'm trying to navigate to https://ntfy.qwe.com/login - I see screen login is disabled. Main url is not protected either.

馃挕 Screenshots and/or logs
no errors in logs

Screenshot 2024-03-28 at 23 59 14
@akarabach akarabach added the 馃 bug Something isn't working label Mar 28, 2024
@binwiederhier
Copy link
Owner

Do a hard refresh in your browser, Ctrl-Alt-F5. Usually it's just a caching issue.

@akarabach
Copy link
Author

tried in private tab - the same issue

@wunter8
Copy link
Contributor

wunter8 commented Mar 29, 2024

Do you have a server.yml file in /mnt/user/appdata/ntfy/etc/?

Have you set up at least one user already? And made sure user.db exists in /mnt/user/appdata/ntfy/lib/?

Also, you should not expect the main URL to be protected: https://docs.ntfy.sh/faq/#can-i-disable-the-web-app-can-i-protect-it-with-a-login-screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants