-
Notifications
You must be signed in to change notification settings - Fork 59
/
.env.example
255 lines (182 loc) · 4.88 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# This is an example of .env configuration file
# For more information, see https://nazurin.readthedocs.io/getting-started/configuration/
# Rename to .env after modifying the values and uncommenting corresponding lines
# ---------- Required ----------
# Telegram bot token
# TOKEN =
# Environment
# production: Webhook mode, development: Polling mode
ENV = production
# Webhook url, eg: https://xxx.fly.dev/, should end with '/'
# Required if using Webhook mode
# WEBHOOK_URL =
# Host to bind to, set to 127.0.0.1 if you are using a reverse proxy
# Required if using Webhook mode
# HOST = 0.0.0.0
# Port to bind to, comment out this entry if on Heroku or fly.io
# Required if using Webhook mode
# PORT =
# Storage types, seperated by commas
STORAGE = Local
# Database type
DATABASE = Local
# Telegram gallery channel ID, optional
# GALLERY_ID =
# Admin user ID
# ADMIN_ID =
# ---------- Optional ----------
# Directory path for storage
# STORAGE_DIR = Pictures
# Whether to make this bot public
# IS_PUBLIC = false
# If IS_PUBLIC is True, the following items will be ignored
# Allowed user ID(s)
# ALLOW_ID =
# Allowed username(s)
# ALLOW_USERNAME =
# Allowed group ID(s)
# GROUP_ID =
# Retry attempts
# RETRIES = 5
# Request timeout
# TIMEOUT = 20
# Chunk size when writing downloaded files, in bytes
# DOWNLOAD_CHUNK_SIZE = 4096
# Maximum number of parallel downloads
# MAX_PARALLEL_DOWNLOAD = 5
# Maximum number of parallel uploads
# MAX_PARALLEL_UPLOAD = 5
# Proxy URL for network requests, defaults to your environment
# HTTP_PROXY = http://127.0.0.1:7890
# Ignored items in image caption
# CAPTION_IGNORE =
# Temporary directory cleanup interval, in days
# CLEANUP_INTERVAL = 7
# ----- Google services -----
# API credential for Firebase & Google Drive
# GOOGLE_APPLICATION_CREDENTIALS =
# ---------- Site ----------
# ----- Artstation -----
# File directory
# ARTSTATION_FILE_PATH = Artstation
# File name
# ARTSTATION_FILE_NAME = {title} ({hash_id}) - {filename}
# ----- Bilibili -----
# File directory
# BILIBILI_FILE_PATH = Bilibili
# File name
# BILIBILI_FILE_NAME = {id_str}_{index} - {user[name]}({user[mid]})
# ----- Bluesky -----
# File directory
# BLUESKY_FILE_PATH = Bluesky
# File name
# BLUESKY_FILE_NAME = {rkey}_{index} - {user[display_name]}({user[handle]})
# ----- Danbooru -----
# File directory
# DANBOORU_FILE_PATH = Danbooru
# File name
# DANBOORU_FILE_NAME = {id} - {filename}
# ----- DeviantArt -----
# File directory
# DEVIANT_ART_FILE_PATH = DeviantArt
# File name
# DEVIANT_ART_FILE_NAME = {title} - {deviationId}
# Name for download files
# DEVIANT_ART_DOWNLOAD_NAME = {title} - {deviationId} - {prettyName}
# ----- Gelbooru -----
# File directory
# GELBOORU_FILE_PATH = Gelbooru
# File name
# GELBOORU_FILE_NAME = {id}
# ----- Kemono -----
# File directory
# KEMONO_FILE_PATH = Kemono
# File name
# KEMONO_FILE_NAME = {pretty_name}
# ----- Lofter -----
# File directory
# LOFTER_FILE_PATH = Lofter
# File name
# LOFTER_FILE_NAME = {id}_{index} - {nickName}({blogName})
# ----- Moebooru -----
# File directory
# {site_name} -> Yandere, {site_url} -> 'yande.re'
# MOEBOORU_FILE_PATH = {site_name}
# File name
# MOEBOORU_FILE_NAME = {filename}
# ----- Pixiv -----
# Refresh token
# PIXIV_TOKEN =
# Image mirror, optional
# PIXIV_MIRROR = i.pximg.net
# Tag translation, optional
# PIXIV_TRANSLATION =
# Bookmark privacy (public/private), optional
# PIXIV_BOOKMARK_PRIVACY = public
# File directory
# PIXIV_FILE_PATH = Pixiv
# File name
# PIXIV_FILE_NAME = {filename} - {title} - {user[name]}({user[id]})
# ----- Twitter -----
# API selection, optional
# TWITTER_API = web
# Auth Token for web API, optional
# TWITTER_AUTH_TOKEN =
# File directory
# TWITTER_FILE_PATH = Twitter
# File name
# TWITTER_FILE_NAME = {id_str}_{index} - {user[name]}({user[id_str]})
# ----- Wallhaven -----
# API key, optional
# WALLHAVEN_API_KEY =
# File directory
# WALLHAVEN_FILE_PATH = Wallhaven
# File name
# WALLHAVEN_FILE_NAME = {id}
# ----- Weibo -----
# File directory
# WEIBO_FILE_PATH = Weibo
# File name
# WEIBO_FILE_NAME = {mid}_{index} - {user[screen_name]}({user[id]})
# ----- Zerochan -----
# File directory
# ZEROCHAN_FILE_PATH = Zerochan
# File name
# ZEROCHAN_FILE_NAME = {id} - {name}
# ---------- Database ----------
# ----- MongoDB -----
# MONGO_URI = mongodb://localhost:27017/nazurin
# ----- Cloudant -----
# CLOUDANT_USER =
# CLOUDANT_APIKEY =
# CLOUDANT_DB = nazurin
# ---------- Storage ----------
# ----- Telegram -----
# Album channel ID
# ALBUM_ID =
# ----- MEGA -----
# MEGA_USER =
# MEGA_PASS =
# ----- Google Drive -----
# Folder ID
# GD_FOLDER =
# ----- OneDrive -----
# Application(client) ID
# OD_CLIENT =
# Refresh token
# OD_RF_TOKEN =
# Client secret
# OD_SECRET =
# ----- S3 -----
# Endpoint
# S3_ENDPOINT = s3.amazonaws.com
# Access key
# S3_ACCESS_KEY =
# Secret key
# S3_SECRET_KEY =
# Using SSL
# S3_SECURE = True
# Region
# S3_REGION =
# Bucket name
# S3_BUCKET = nazurin