Files
overub/config/config.yml
2025-12-21 17:12:32 +01:00

132 lines
2.2 KiB
YAML

# OverUB main configuration
bot:
api_id: 123456
api_hash: "your_hash"
session_name: "overub"
phone: "+1234567890"
command_prefix: "."
instances: []
config_version: "1.0.0"
logging:
level: "INFO"
json: false
module_logs: false
remote_url: ""
modules:
enabled_categories:
- text
- media
- utility
- search
- admin
- fun
- automation
- developer
disabled_modules: []
plugins:
enabled: true
auto_update: true
allow_third_party: true
plugin_path: "plugins/external"
database:
type: "sqlite"
path: "data/database.db"
backup: true
backup_interval: 86400
dsn: ""
uri: ""
url: ""
database: "overub"
updates:
enabled: true
git:
remote: "https://gitea.yourdomain.com/overspend1/overub.git"
token: ""
use_ssh: false
ssh_key: "~/.ssh/id_rsa"
gitea:
api_url: "https://gitea.yourdomain.com/api/v1"
token: ""
use_releases: true
webhook_secret: ""
channel: "stable"
branch: "main"
auto_update: true
check_interval: 3600
update_time: "03:00"
notify: true
backup_before_update: true
max_rollback_versions: 3
verify_commits: true
allowed_sources:
- "https://gitea.yourdomain.com"
modules:
path: "modules"
remote: "origin"
branch: "main"
webhook:
enabled: false
host: "0.0.0.0"
port: 8080
scheduler:
auto_update_time: "03:00"
max_downtime: 120
postpone_on_activity: true
retry_failed: true
retry_interval: 3600
notifications:
enabled: true
channels:
- telegram
events:
- update_available
- update_completed
- update_failed
quiet_hours:
start: "22:00"
end: "08:00"
services:
youtube_api_key: ""
translate_url: ""
security:
allowed_users: []
blocked_users: []
sudo_users: []
plugin_error_limit: 3
secret_key: ""
plugin_network: false
allowed_signers: []
verify_plugin_commits: false
performance:
max_memory: 512
max_cpu: 50
cache_size: 100
rate_limits:
command:
limit: 5
window: 5
backup:
auto: false
schedule: "03:30"
check_interval: 60
scopes:
- core
- modules
- plugins
max_downtime: 120
postpone_on_activity: true
retry_failed: true
retry_interval: 3600