-
Notifications
You must be signed in to change notification settings - Fork 7
/
.env.example
99 lines (66 loc) · 2.36 KB
/
.env.example
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
## MeiliSearch Config ##
# URL of MeiliSearch instance
MEILISEARCH_HOST=http://localhost:7700
# Use secret key or master key here
MEILISEARCH_API_KEY=
# TAS will prefix created index with this value, useful for shared MeiliSearch instance
MEILISEARCH_INDEX_PREFIX=tas_
## Telegram Config ##
# Bot token
TELEGRAM_BOT_TOKEN=1234:somethingrandom
# Use webhook
TELEGRAM_WEBHOOK=false
# Some random text used in webhook url, use bot token if not set (but not recommended)
TELEGRAM_WEBHOOK_UPDATE_TOKEN=anythingyouwant
# Wheather to follow edits
TELEGRAM_FOLLOW_EDIT=true
# or delete
TELEGRAM_FOLLOW_DELETE=true
## HTTP Config ##
# Public accessable URL
HTTP_BASE_URL=https://example.com:3100
# Search UI URL
HTTP_UI_URL=https://example.com:3100
# Listen host
HTTP_HOST=0.0.0.0
# Listen port
HTTP_PORT=3100
## Auth Config ##
# Used for signing search tokens, KEEP IT SAFE or data may be leaked
AUTH_JWT_SECRET="you will need this long enough"
# Used for import archive, keep it safe or you may lose your data
AUTH_IMPORT_TOKEN="you will keep this safe dont you"
## Cache Config ##
# Cache store, which used for user avatar and message queue; 'memory' | 'redis'
CACHE_STORE=redis
# Redis related config
CACHE_REDIS_HOST=localhost
CACHE_REDIS_PORT=6379
CACHE_REDIS_PASSWORD=
CACHE_REDIS_DB=0
CACHE_REDIS_KEY_PREFIX=tas_
## OCR Config ##
# Enable OCR, if OCR is not enabled then texts in image will not be searchable
OCR_ENABLE=false
# OCR Driver, 'google' | 'paddle-ocr-web'
OCR_DRIVER=google
# OCR Enpoint
# for google, use 'eu-vision.googleapis.com' or 'us-vision.googleapis.com'
# for paddle-ocr-web, use http://localhost:1234/api
OCR_ENDPOINT=eu-vision.googleapis.com
# OCR Credentials
# for google, this will be ignored, you should set GOOGLE_APPLICATION_CREDENTIALS below
# for paddle-ocr-web, this will be ignored
OCR_CREDENTIALS=
## Queue Config ##
# Enable queue, if queue is not enabled then all task will be done in-process
QUEUE_ENABLE=false
# Redis related config
QUEUE_REDIS_HOST=${CACHE_REDIS_HOST}
QUEUE_REDIS_PORT=${CACHE_REDIS_PORT}
QUEUE_REDIS_PASSWORD=${CACHE_REDIS_PASSWORD}
QUEUE_REDIS_DB=${CACHE_REDIS_DB}
QUEUE_REDIS_KEY_PREFIX=${CACHE_REDIS_KEY_PREFIX}queue_
## Third Party Integrations ##
# Set to the path of the JSON file that contains your service account key if you are using google cloud services
GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials/of/google.json