[GH-ISSUE #1075] Login is disabled when NTFY_ENABLE_LOGIN: true #753

Closed
opened 2026-05-07 00:27:10 +02:00 by BreizhHardware · 3 comments

Originally created by @akarabach on GitHub (Mar 28, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1075

🐞 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
Originally created by @akarabach on GitHub (Mar 28, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1075 :lady_beetle: **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. :bulb: **Screenshots and/or logs** no errors in logs <img width="513" alt="Screenshot 2024-03-28 at 23 59 14" src="https://github.com/binwiederhier/ntfy/assets/12261380/45fa1e15-7ee3-406c-8701-0f9335df52d3">
BreizhHardware 2026-05-07 00:27:10 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@binwiederhier commented on GitHub (Mar 29, 2024):

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

<!-- gh-comment-id:2026516146 --> @binwiederhier commented on GitHub (Mar 29, 2024): Do a hard refresh in your browser, Ctrl-Alt-F5. Usually it's just a caching issue.
Author
Owner

@akarabach commented on GitHub (Mar 29, 2024):

tried in private tab - the same issue

<!-- gh-comment-id:2026816641 --> @akarabach commented on GitHub (Mar 29, 2024): tried in private tab - the same issue
Author
Owner

@wunter8 commented on GitHub (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

<!-- gh-comment-id:2027166843 --> @wunter8 commented on GitHub (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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#753
No description provided.