Bug fixing

This commit is contained in:
Your Name
2025-05-25 14:48:05 +12:00
parent d849aa73f4
commit 3cffb6cd94
5 changed files with 98 additions and 1 deletions

View File

@@ -83,10 +83,20 @@ The server can be configured by creating a JSON configuration file at `~/.config
"host": "localhost",
"port": 8080,
"storage_path": "/path/to/storage",
"write_tokens": ["your-secret-token"]
"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
}
```
## API Endpoints
### Upload a File