Fix autogroup:self alternative example

Also indent and split the comment into two lines to avoid horizontal
scrolling.
This commit is contained in:
Florian Preinstorfer
2025-10-21 12:51:07 +02:00
committed by nblock
parent 8010cc574e
commit ed38d00aaa

View File

@@ -263,12 +263,13 @@ Includes devices where the same user is authenticated on both the source and des
If you experience performance issues, consider using more specific ACL rules or limiting the use of `autogroup:self`. If you experience performance issues, consider using more specific ACL rules or limiting the use of `autogroup:self`.
```json ```json
{ {
// To allow internal users communications to their own nodes we can do following rules to allow access in case autogroup:self is causing performance issues. // The following rules allow internal users to communicate with their
{ "action": "accept", "src": ["boss@"], "dst": ["boss@:"] }, // own nodes in case autogroup:self is causing performance issues.
{ "action": "accept", "src": ["boss@"], "dst": ["boss@:*"] },
{ "action": "accept", "src": ["dev1@"], "dst": ["dev1@:*"] }, { "action": "accept", "src": ["dev1@"], "dst": ["dev1@:*"] },
{ "action": "accept", "src": ["dev2@"], "dst": ["dev2@:"] }, { "action": "accept", "src": ["dev2@"], "dst": ["dev2@:*"] },
{ "action": "accept", "src": ["admin1@"], "dst": ["admin1@:"] }, { "action": "accept", "src": ["admin1@"], "dst": ["admin1@:*"] },
{ "action": "accept", "src": ["intern1@"], "dst": ["intern1@:"] } { "action": "accept", "src": ["intern1@"], "dst": ["intern1@:*"] }
} }
``` ```