From 256b90a0c5dc9949478bbbed6090a116db1b5d51 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 11 Dec 2022 20:50:27 +0000 Subject: [PATCH] ntfy : ajout README.md --- podman-ntfy/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 podman-ntfy/README.md diff --git a/podman-ntfy/README.md b/podman-ntfy/README.md new file mode 100644 index 0000000..fccde01 --- /dev/null +++ b/podman-ntfy/README.md @@ -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) + +```