Bug fixing
This commit is contained in:
10
README.md
10
README.md
@@ -76,13 +76,13 @@ docker-compose up -d
|
||||
|
||||
## Configuration
|
||||
|
||||
The server can be configured by creating a JSON configuration file at `~/.config/simple_object_storage/config.json`. Here's an example configuration:
|
||||
The server can be configured by creating a JSON configuration file at `~/.config/simple_object_storage/config.json`. Default values are shown below (everything but write tokens), suitable for running in Docker.
|
||||
|
||||
```json
|
||||
{
|
||||
"host": "localhost",
|
||||
"port": 8080,
|
||||
"storage_path": "/path/to/storage",
|
||||
"host": "0.0.0.0",
|
||||
"port": 80,
|
||||
"storage_path": "/data/storage",
|
||||
"write_tokens": ["your-secret-token"],
|
||||
"cors": {
|
||||
"allowed_origins": ["*"],
|
||||
@@ -92,7 +92,7 @@ The server can be configured by creating a JSON configuration file at `~/.config
|
||||
},
|
||||
"rate_limiting": {
|
||||
"auth_rate_limit": 5, // Maximum number of auth attempts
|
||||
"auth_window_seconds": 10 // Time window in seconds (10 seconds)
|
||||
"auth_window_seconds": 300 // Time window in seconds (5 minutes)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user