forked from wttzdrive/wddrvr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env_sample
35 lines (34 loc) · 2.22 KB
/
.env_sample
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
##Postgress Data:
#
ps_name=db
ps_user=user
ps_pass=example
#discord data:
ddrv_hook1=weboook1
ddrv_hook2=webhook2
#ports config
ftp_port=45001
# Network address for the FTP server to bind to. It defaults to '2525' meaning it listens on all interfaces ($FTP_ADDR).
http_port=45002
#Password for the ddrv service, used for FTP, HTTP or WEBDAV access authentication ($PASSWORD).
wd_port=45003
ftp_range=45004-45014
#ddrv options
# Defines the maximum size (in bytes) of chunks to be sent via Discord webhook.
# You should probably never touch this and if you do don't set it to more than 25MB,
# with discord webhooks you can't upload file bigger than 25MB
CHUNK_SIZE=25165824
# Enables concurrent file uploads to Discord, resulting in faster file transfers.
# Note that this will use more RAM, approximately (chunkSize * number of webhooks) + 20% extra bytes.
# Use with caution based on your system's memory capacity.
ASYNC_WRITE=false
# --ftp-port-range=STRING Range of ports to be used for passive FTP connections. The range is provided as a string in the format 'start-end' ($FTP_PORT_RANGE).
# --username=STRING Username for the ddrv service, used for FTP, HTTP or WEBDAV access authentication ($USERNAME).
# --password=STRING
# --http-addr=":2526" Network address for the HTTP server to bind to ($HTTP_ADDR)
# --wd-addr=":2527" Network address for the WebDav server to bind to ($WEBDAV_ADDR)
# --db-url=STRING Connection string for the Postgres database. The format should be: postgres://user:password@localhost:port/database?sslmode=disable ($DATABASE_URL)
# --webhooks=STRING Comma-separated list of Manager webhook URLs used for sending attachment messages ($WEBHOOKS).
# --chunk-size=25165824 The maximum size in bytes of chunks to be sent via Manager webhook. By default, it's set to 24MB (25165824 bytes) ($CHUNK_SIZE).
# --async-write Enables concurrent file uploads to Discord, resulting in faster file transfers. Note that this will use significantly more RAM, approximately (chunkSize * number
of webhooks) + 20% extra bytes. Use with caution based on your system's memory capacity ($ASYNC_WRITE).