forked from govdbot/govd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
49 lines (42 loc) · 1.17 KB
/
.env.example
File metadata and controls
49 lines (42 loc) · 1.17 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
# this is just an example of environment variabless.
# ideally, you shouldn't just copy this file to .env,
# instead create your own .env file and fill in only
# the necessary and wanted variables, like database
# credentials and bot token.
# database
DB_HOST=db
DB_PORT=5432
DB_NAME=govd
DB_USER=govd
DB_PASSWORD=password
# telegram
BOT_API_URL=https://api.telegram.org
BOT_TOKEN=12345678:ABC-DEF1234ghIkl-zyx57W2P0s
CONCURRENT_UPDATES=50
# media & files
DOWNLOADS_DIR=downloads
MAX_DURATION=1h # (e.g. 1h, 30m, 15s)
MAX_FILE_SIZE=1000 # in MB
CACHING=true
# proxy (https, http, socks5)
# PROXY=http://proxy:8080
# default group settings
DEFAULT_ENABLE_CAPTIONS=true
DEFAULT_ENABLE_SILENT=false
DEFAULT_ENABLE_NSFW=false
DEFAULT_MEDIA_ALBUM_LIMIT=10
DEFAULT_LANGUAGE=en
# other
REPO_URL=https://github.com/govdbot/govd
PROFILER_PORT=6060 # default pprof port
METRICS_PORT=8080 # default prometheus metrics port
LOG_LEVEL=info
WHITELIST=id1,id2,id3
CAPTIONS_HEADER="<a href='{{url}}'>source</a> - @{{username}}"
CAPTIONS_DESCRIPTION="<blockquote expandable>{{text}}</blockquote>"
ADMINS=id1,id2
AUTOMATIC_LANGUAGE_DETECTION=true
# dev
PGWEB_PORT=8081
PGWEB_USER=admin
PGWEB_PASSWORD=password