mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: allow unauthenticated users to perform domain name lookups
This commit is contained in:
@@ -22,5 +22,10 @@ framework:
|
||||
|
||||
user_rdap_requests:
|
||||
policy: sliding_window
|
||||
limit: 10
|
||||
limit: 60
|
||||
interval: '1 hour'
|
||||
|
||||
public_rdap_requests:
|
||||
policy: sliding_window
|
||||
limit: 30
|
||||
interval: '1 hour'
|
||||
|
||||
@@ -60,6 +60,7 @@ security:
|
||||
- { path: ^/api$, roles: PUBLIC_ACCESS }
|
||||
- { path: ^/api/docs, roles: PUBLIC_ACCESS }
|
||||
- { path: ^/api/register$, roles: PUBLIC_ACCESS }
|
||||
- { path: ^/api/domains/*, roles: CAN_RDAP_LOOKUP }
|
||||
- { path: "^/api/watchlists/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/calendar$", roles: PUBLIC_ACCESS }
|
||||
- { path: "^/api/watchlists/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/rss", roles: PUBLIC_ACCESS }
|
||||
- { path: "^/api/config$", roles: PUBLIC_ACCESS }
|
||||
|
||||
Reference in New Issue
Block a user