services-garbaye/podman-ntfy/README.md

29 lines
1,000 B
Markdown
Raw Normal View History

2022-12-11 20:50:27 +00:00
# Utilisateurs et Permissions (ACL)
Documentation pour la gestion des [utilisateurs](https://docs.ntfy.sh/config/#users-and-roles) et [permissions](https://docs.ntfy.sh/config/#access-control-list-acl).
Pour lancer ntfy en interactif dans l'environnement `podman`, préfixer les commandes par `podman container exec -it podman-ntfy` :
2022-12-11 20:50:27 +00:00
```
$ podman container exec -it podman-ntfy ntfy access
2022-12-11 20:50:27 +00:00
user * (anonymous)
- no topic-specific permissions
- read-write access to all (other) topics (server config)
$ podman container exec -it podman-ntfy ntfy user add didier
2022-12-11 20:50:27 +00:00
user didier added with role user
$ podman container exec -it podman-ntfy ntfy access didier prefix_* rw
2022-12-11 20:50:27 +00:00
granted read-write access to topic prefix_*
user didier (user)
- read-write access to topic prefix_*
$ podman container exec -it podman-ntfy ntfy access everyone prefix_* deny
2022-12-11 20:50:27 +00:00
revoked all access to topic prefix_*
user * (anonymous)
- no access to topic prefix_*
- read-write access to all (other) topics (server config)
```