Uploaded code

This commit is contained in:
2025-09-27 17:45:52 +01:00
commit b73af5bf11
61 changed files with 10500 additions and 0 deletions

44
config.json.example Normal file
View 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
}
}