Bug fixing

This commit is contained in:
Your Name
2025-05-25 15:05:01 +12:00
parent 3cffb6cd94
commit 27acc9f9f0
7 changed files with 125 additions and 9 deletions

View File

@@ -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