Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/templates/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,18 @@ You can modify endpoints by configuring `access.endpoints` in your config:
settings:
access:
endpoints:
- !/v1/register
- !/v1/unregister
- !/v1/qrcodelink
- !/v1/contacts
- "!/v1/register"
- "!/v1/unregister"
- "!/v1/qrcodelink"
- "!/v1/contacts"
- /v2/send
```

By default adding an endpoint explictly allows access to it, use `!` to block it instead.

> [!IMPORTANT]
> When using `!` to block you must enclose the endpoint with quotes, like in the example above.

| Config (Allow) | (Block) | Result | | | |
| :------------- | :------------- | :--------: | --- | :---------------: | --- |
| `/v2/send` | `unset` | **all** | 🛑 | **`/v2/send`** | ✅ |
Expand Down
11 changes: 7 additions & 4 deletions docs/configuration/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ You can modify endpoints by configuring `access.endpoints` in your config:
settings:
access:
endpoints:
- !/v1/register
- !/v1/unregister
- !/v1/qrcodelink
- !/v1/contacts
- "!/v1/register"
- "!/v1/unregister"
- "!/v1/qrcodelink"
- "!/v1/contacts"
- /v2/send
```

By default adding an endpoint explictly allows access to it, use `!` to block it instead.

> [!IMPORTANT]
> When using `!` to block you must enclose the endpoint in quotes, like in the example above

| Config (Allow) | (Block) | Result | | | |
| :------------- | :------------- | :--------: | --- | :---------------: | --- |
| `/v2/send` | `unset` | **all** | 🛑 | **`/v2/send`** | ✅ |
Expand Down