Uploaded code
This commit is contained in:
44
config.json.example
Normal file
44
config.json.example
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"storage": {
|
||||
"backend": "b2",
|
||||
"local_path": "storage"
|
||||
},
|
||||
"b2": {
|
||||
"application_key_id": "your_key_id_here",
|
||||
"application_key": "your_application_key_here",
|
||||
"bucket_name": "your_bucket_name_here"
|
||||
},
|
||||
"flask": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 8866,
|
||||
"debug": true
|
||||
},
|
||||
"upload": {
|
||||
"max_file_size_mb": 100,
|
||||
"allowed_extensions": [".jpg", ".jpeg", ".png", ".gif", ".pdf", ".txt", ".doc", ".docx", ".zip", ".mp4", ".mp3"],
|
||||
"default_expiry": "7d"
|
||||
},
|
||||
"paste": {
|
||||
"max_length": 1000000,
|
||||
"default_expiry": "24h"
|
||||
},
|
||||
"expiry": {
|
||||
"enabled": true,
|
||||
"cleanup_interval_hours": 1,
|
||||
"available_options": ["1h", "24h", "7d", "30d", "90d", "never"]
|
||||
},
|
||||
"security": {
|
||||
"rate_limit_enabled": false,
|
||||
"max_uploads_per_hour": 50
|
||||
},
|
||||
"maintenance": {
|
||||
"enabled": false,
|
||||
"message": "Sharey is currently under maintenance. Please check back later!",
|
||||
"estimated_return": ""
|
||||
},
|
||||
"admin": {
|
||||
"enabled": true,
|
||||
"password_hash": "",
|
||||
"session_timeout_minutes": 60
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user