Repository navigation
Expand file tree
/
Copy pathsample.env
More file actions
56 lines (51 loc) · 2.49 KB
/
Copy pathsample.env
File metadata and controls
56 lines (51 loc) · 2.49 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
# Security - change these in production!
FLASK_DEBUG=false
FLASK_ENV=production
SECRET_KEY=change-me-to-a-long-random-value
ADMIN_BOOTSTRAP_PASSWORD=change-me-first-boot
FLASK_CSRF=true
FLASK_SECURE_COOKIES=true
# Makespace SSO (OIDC). Keep the confidential client secret server-side.
OIDC_ISSUER=https://identity.mksmad.org/realms/Makespace
OIDC_DISCOVERY_URL=https://identity.mksmad.org/realms/Makespace/.well-known/openid-configuration
OIDC_CLIENT_ID=manavote
OIDC_CLIENT_SECRET=
OIDC_REDIRECT_URI=https://manavote.mksmad.org/auth/callback/keycloak
OIDC_POST_LOGOUT_REDIRECT_URI=https://manavote.mksmad.org/login
OIDC_REQUIRED_GROUP=members-active
# Telegram Bot Configuration (optional)
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=
TELEGRAM_THREAD_ID=
TELEGRAM_ADMIN_ID=
TELEGRAM_WEBHOOK_SECRET=change-me-soon
# After first boot, set the public Base URL in Admin > Telegram Configuration.
# The webhook is synchronized automatically on each application startup.
# Admin API Key (required for /api/* endpoints)
ADMIN_API_KEY=change-me-soon
# MCP admin server
MCP_API_KEY=change-me-soon
MCP_SERVER_ENABLED=false
MCP_SERVER_HOST=127.0.0.1
MCP_SERVER_PORT=8765
# Optional OpenAI-compatible Ocabra model for natural-language Telegram + MCP.
# Non-command messages from linked members are sent to this endpoint. Only
# linked admins can invoke mutating MCP tools. The user allowlist is populated
# automatically from members.telegram_user_id; no separate ID list is needed.
OCABRA_CHAT_URL=
# Used to recognize @mentions exactly in group chats. Disable group privacy mode
# with BotFather if the configured forum topic should accept messages without a
# mention; Telegram otherwise does not deliver those messages to the webhook.
TELEGRAM_BOT_USERNAME=
OCABRA_API_KEY=
OCABRA_MODEL=ocabra
OCABRA_TIMEOUT_SECONDS=60
# Conservative UTF-8-byte token estimate; tune context to your model's verified limit.
TELEGRAM_AGENT_CONTEXT_BUDGET=32768
TELEGRAM_AGENT_INPUT_BUDGET=4096
TELEGRAM_AGENT_OUTPUT_RESERVE=1024
TELEGRAM_CONFIRM_TTL_SECONDS=300
# Queued + running assistant jobs per linked member, across chats in each process.
# Positive integer; each WSGI worker maintains its own count. Restart after changes.
TELEGRAM_AGENT_MAX_JOBS_PER_MEMBER=1
TELEGRAM_AGENT_SYSTEM_PROMPT=You are the ManaVote Telegram assistant. Use tools for ManaVote facts and actions. For proposal questions, include proposal_url and image_url when available; when asked for the listed or external reference link, also include the separate url field and label each link clearly.