Bug fixing
This commit is contained in:
12
README.md
12
README.md
@@ -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
|
||||
|
Reference in New Issue
Block a user