ntfy : ajout README.md

This commit is contained in:
Gitouche 2022-12-11 20:50:27 +00:00
parent 81e6303813
commit 256b90a0c5

28
podman-ntfy/README.md Normal file
View file

@ -0,0 +1,28 @@
# 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 exec -it podman-ntfy` :
```
$ podman exec -it podman-ntfy ntfy access
user * (anonymous)
- no topic-specific permissions
- read-write access to all (other) topics (server config)
$ podman exec -it podman-ntfy ntfy user add didier
user didier added with role user
$ podman exec -it podman-ntfy ntfy access didier prefix_* rw
granted read-write access to topic prefix_*
user didier (user)
- read-write access to topic prefix_*
$ podman exec -it podman-ntfy ntfy access everyone prefix_* deny
revoked all access to topic prefix_*
user * (anonymous)
- no access to topic prefix_*
- read-write access to all (other) topics (server config)
```