Browse Source

env variables doc

Paolo Asperti 3 years ago
parent
commit
29b45dddb4
1 changed files with 26 additions and 3 deletions
  1. 26 3
      README.md

+ 26 - 3
README.md

@@ -173,16 +173,14 @@ services:
173 173
     restart: unless-stopped
174 174
 ```
175 175
 
176
-We use these environment variables:
176
+For this container image, you can use these environment variables, **in addition** to the ones specified in the following **ENV variables** section:
177 177
 
178 178
 | variable | optional | description |
179 179
 | --- | --- | --- |
180 180
 | RELAY | no | the IP address/DNS name of the machine running this container |
181 181
 | ENCRYPTED_ONLY | yes | if set to **"1"** unencrypted connection will not be accepted |
182
-| DB_URL | yes | path for database file |
183 182
 | KEY_PUB | yes | public part of the key pair |
184 183
 | KEY_PRIV | yes | private part of the key pair |
185
-| RUST_LOG | yes | set debug level (error|warn|info|debug|trace) |
186 184
 
187 185
 ### Secret management in S6-overlay based images
188 186
 
@@ -316,3 +314,28 @@ These packages are meant for the following distributions:
316 314
 - Ubuntu 18.04 LTS
317 315
 - Debian 11 bullseye
318 316
 - Debian 10 buster
317
+
318
+## ENV variables
319
+
320
+hbbs and hbbr can be configured using these ENV variables.
321
+You can specify the variables as usual or use an `.env` file.
322
+
323
+| variable | binary | description |
324
+| --- | --- | --- |
325
+| ALWAYS_USE_RELAY | hbbs | if set to **"Y"** disallows direct peer connection |
326
+| DB_URL | hbbs | path for database file |
327
+| DOWNGRADE_START_CHECK | hbbr | delay (in seconds) before downgrade check |
328
+| DOWNGRADE_THRESHOLD | hbbr | threshold of downgrade check (bit/ms) |
329
+| KEY | hbbs/hbbr | if set force the use of a specific key, if set to **"_"** force the use of any key |
330
+| LIMIT_SPEED | hbbr | speed limit (in Mb/s) |
331
+| LOCAL_IP | hbbs | hbbs IP address used in hole-punching |
332
+| MASK | hbbs | network+mask of LAN IPs |
333
+| PORT | hbbs/hbbr | listening port (21116 for hbbs - 21117 for hbbr) |
334
+| RELAY_SERVERS | hbbs | IP address/DNS name of the machines running hbbr (separated by comma) |
335
+| RENDEZVOUS_SERVERS | hbbs | IP address/DNS name of the machines running hbbs (separated by comma) |
336
+| RMEM | hbbs | UDP recv buffer size |
337
+| RUST_LOG | all | set debug level (error|warn|info|debug|trace) |
338
+| SINGLE_BANDWIDTH | hbbr | max bandwidth for a single connection (in Mb/s) |
339
+| SOFTWARE_URL hbbs | hbbs | download url of RustDesk newest version |
340
+| TEST_HBBS | hbbs | IP address of hbbs for avoiding udp socket failure error |
341
+| TOTAL_BANDWIDTH | hbbr | max total bandwidth (in Mb/s) |