Bug fixing
This commit is contained in:
10
README.md
10
README.md
@@ -84,17 +84,17 @@ The server can be configured by creating a JSON configuration file at `~/.config
|
||||
"port": 8080,
|
||||
"storage_path": "/path/to/storage",
|
||||
"write_tokens": ["your-secret-token"],
|
||||
}
|
||||
```
|
||||
|
||||
Optionally, you can modify the CORS configuration. Defaults:
|
||||
```json
|
||||
"cors": {
|
||||
"allowed_origins": ["*"],
|
||||
"allowed_methods": ["GET", "PUT", "POST", "DELETE", "OPTIONS"],
|
||||
"allowed_headers": ["Authorization", "Content-Type"],
|
||||
"allow_credentials": false
|
||||
},
|
||||
"rate_limiting": {
|
||||
"auth_rate_limit": 5, // Maximum number of auth attempts
|
||||
"auth_window_seconds": 10 // Time window in seconds (10 seconds)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## API Endpoints
|
||||
|
Reference in New Issue
Block a user