Skip to content

Commit

Permalink
feat: enable role based access control
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jun 15, 2024
1 parent f928f2e commit 474585a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
volumes:
- nginx-config-volume:/etc/nginx/sites-enabled
- naarad-cache:/var/cache/ntfy
- naarad-auth:/var/lib/ntfy
healthcheck:
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:8000/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
interval: 60s
Expand All @@ -29,4 +30,5 @@ volumes:
nginx-config-volume:
external: true
name: metaploy-nginx-config-volume
naarad-cache:
naarad-cache:
naarad-auth:
4 changes: 2 additions & 2 deletions server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ cache-duration: "24h"
# If you are running ntfy with systemd, make sure this user database file is owned by the
# ntfy user and group by running: chown ntfy.ntfy <filename>.
#
# auth-file: <filename>
# auth-default-access: "read-write"
auth-file: /var/lib/ntfy/user.db
auth-default-access: "read-only"
# auth-startup-queries:

# If set, the X-Forwarded-For header is used to determine the visitor IP address
Expand Down

0 comments on commit 474585a

Please sign in to comment.