-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
109 lines (92 loc) · 3.85 KB
/
Copy pathconfig.example.yaml
File metadata and controls
109 lines (92 loc) · 3.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# SuperBotGo Configuration
# Copy this file to config.yaml and fill in your values.
# All values can be overridden via environment variables with BOT_ prefix:
# BOT_DATABASE_HOST=db BOT_TELEGRAM_TOKEN=123:ABC etc.
# Mapping rule:
# dot between sections -> single underscore, literal underscore in key -> double underscore
# user_auth.session_secret -> BOT_USER__AUTH_SESSION__SECRET
default_locale: en
university_sync:
enabled: false
interval: "1h" # pull interval: "30m", "1h", "24h", etc.
base_url: "" # external system API base URL
token: "" # auth token for external system
spicedb:
endpoint: "" # e.g. "localhost:50051" for local docker-compose
token: "" # must match SpiceDB --grpc-preshared-key when endpoint is set
insecure: true
database:
host: localhost
port: 5432
user: superbot
password: superbot_secret
dbname: superbot
sslmode: prefer
redis:
addr: localhost:6379
password: ""
db: 0
telegram:
token: "" # set BOT_TELEGRAM_TOKEN or leave empty to disable Telegram
mode: polling # "polling" or "webhook"
# webhook_url: "" # required when mode=webhook, e.g. "https://bot.example.com/tg/webhook"
# webhook_secret: "" # optional secret token for webhook request validation
# webhook_listen: ":8443" # local address for webhook HTTP server
discord:
token: "" # set BOT_DISCORD_TOKEN or leave empty to disable Discord
shard_id: 0 # 0-indexed shard identifier (default 0)
shard_count: 1 # total number of shards (1 = no sharding)
vk:
token: "" # set BOT_VK_TOKEN or leave empty to disable VK
mode: longpoll # "longpoll" or "callback"
# callback_url: "" # required when mode=callback, e.g. "https://bot.example.com/vk/callback"
callback_path: "/vk/callback" # local HTTP path handled by SuperBotGo
mattermost:
url: "" # e.g. "https://mattermost.example.com"
token: "" # set BOT_MATTERMOST_TOKEN or leave empty to disable Mattermost
# actions_url: "" # public URL for interactive button callbacks, e.g. "https://bot.example.com/mattermost/actions"
actions_path: "/mattermost/actions" # local HTTP path handled by SuperBotGo
# actions_secret: "" # shared secret embedded into interactive action callbacks
filestore:
default_ttl: "24h"
max_file_size: 52428800 # 50 MB
s3:
bucket: "user-files"
region: "us-east-1"
endpoint: "http://localhost:9000" # MinIO from docker-compose; for AWS S3 leave empty
public_endpoint: "" # optional HTTPS endpoint used only for browser direct uploads
access_key: "minioadmin"
secret_key: "minioadmin"
prefix: "files/"
admin:
port: 8080
modules_dir: ./wasm_modules
blob_store: s3
api_key: "" # optional Bearer API key for admin API automation
s3:
bucket: "wasm-plugins"
region: "us-east-1"
endpoint: "http://localhost:9000" # MinIO from docker-compose; for AWS S3 leave empty
access_key: "minioadmin"
secret_key: "minioadmin"
prefix: "" # optional key prefix, e.g. "wasm_modules/"
tsu_accounts:
application_id: "" # set together with secret_key to enable TSU.Accounts login
secret_key: ""
callback_url: "" # public URL for TSU redirect, e.g. "https://bot.example.com/oauth/login"
base_url: "https://accounts.kreosoft.space"
user_auth:
session_secret: "" # set in production so user sessions survive restarts
cookie_same_site: "lax" # use "none" with HTTPS for plugin frontends on different sites
smtp:
host: ""
port: 587
username: ""
password: ""
from: ""
wasm:
reconfigure_enabled: true
rpc_enabled: false
events_backend: memory # "memory" or "postgres"
strict_migrate: true
http_policy_enabled: false