68 lines
1.0 KiB
YAML
68 lines
1.0 KiB
YAML
enabled: true
|
|
route: /api
|
|
version_prefix: v1
|
|
|
|
auth:
|
|
api_keys_enabled: true
|
|
jwt_enabled: true
|
|
jwt_secret: ''
|
|
jwt_algorithm: HS256
|
|
jwt_expiry: 3600
|
|
jwt_refresh_expiry: 604800
|
|
session_enabled: true
|
|
|
|
cors:
|
|
enabled: true
|
|
origins:
|
|
- '*'
|
|
methods:
|
|
- GET
|
|
- POST
|
|
- PATCH
|
|
- DELETE
|
|
- OPTIONS
|
|
headers:
|
|
- Content-Type
|
|
- Authorization
|
|
- X-API-Key
|
|
- X-API-Token
|
|
- X-Grav-Environment
|
|
- If-Match
|
|
- If-None-Match
|
|
expose_headers:
|
|
- ETag
|
|
- X-Invalidates
|
|
- X-RateLimit-Limit
|
|
- X-RateLimit-Remaining
|
|
- X-RateLimit-Reset
|
|
max_age: 86400
|
|
credentials: false
|
|
|
|
rate_limit:
|
|
enabled: true
|
|
requests: 120
|
|
window: 60
|
|
storage: file
|
|
|
|
flex_backend:
|
|
pages: true
|
|
accounts: true
|
|
|
|
pagination:
|
|
default_per_page: 20
|
|
max_per_page: 1000
|
|
|
|
invitations:
|
|
# Default lifetime of a user invite link, in seconds (default 7 days).
|
|
expiration: 604800
|
|
|
|
popularity:
|
|
enabled: true
|
|
history:
|
|
daily: 30
|
|
monthly: 12
|
|
visitors: 20
|
|
ignore:
|
|
- '/test*'
|
|
- '/modular'
|