-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfly.telegram.toml.example
More file actions
38 lines (32 loc) · 960 Bytes
/
Copy pathfly.telegram.toml.example
File metadata and controls
38 lines (32 loc) · 960 Bytes
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
# fly.telegram.toml — example Fly.io config for self-hosting the DCP Telegram service.
#
# Copy to `fly.telegram.toml`, set your own `app` name, then deploy with:
# fly deploy -c fly.telegram.toml
# `fly.telegram.toml` is gitignored so your deployment config stays private.
#
# Bring your OWN Telegram bot token (from @BotFather):
# fly secrets set DCP_TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
# See https://fly.io/docs/reference/configuration/
app = 'your-dcp-telegram-app'
primary_region = 'iad'
[build]
dockerfile = 'Dockerfile.telegram'
[env]
DCP_TELEGRAM_HOST = '0.0.0.0'
DCP_TELEGRAM_PORT = '8423'
DCP_TELEGRAM_DATA_DIR = '/data'
[http_service]
internal_port = 8423
force_https = true
auto_stop_machines = 'off'
auto_start_machines = true
min_machines_running = 1
processes = ['app']
[[mounts]]
source = 'dcp_telegram_data'
destination = '/data'
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
memory_mb = 1024