Replies: 8 comments 22 replies
-
blacklist, just limit its bandwidth rustdesk-server/src/relay_server.rs Line 527 in bac9548 blocklist, will block its connection rustdesk-server/src/relay_server.rs Line 382 in bac9548 About why not in hbbs, there is no why, just not did it. :(
It is used in case lo0 is not rustdesk-server/src/rendezvous_server.rs Line 145 in bac9548 test_hbbs is for health check, because I found our udp on public server failed when big udp traffic sometimes, it can only recover after restarting hbbs, I did not know the reason, so add this as the solution.
ignore this, useless for self-hosting. My bad, not clear code enough when publish this.
I attempted to solve internet/intranet access issue before, but it did not work. please ignore this.
ignore this, useless for self-hosting.
useless for sqlite I guess
ignore this, useless for self-hosting. |
Beta Was this translation helpful? Give feedback.
-
It is not a must, but it is added because I like to use Line 64 in bac9548 |
Beta Was this translation helpful? Give feedback.
-
What is I can understand what is |
Beta Was this translation helpful? Give feedback.
-
Hi there, very interesting conversation that helped me a lot clarified the variable and what they are doing. As @paspo mentioned,
That's exactly what I'm trying to achieve... a way to log and ban bad behaviours. Here are my questions: The log data I'm the most interested to store would be:
|
Beta Was this translation helpful? Give feedback.
-
Is |
Beta Was this translation helpful? Give feedback.
-
@rustdesk Where does the environment variable file .env live? Lets say if i have a hbbs/hbbr server , where should .env be placed? or is it just a Global/System Env variable? |
Beta Was this translation helpful? Give feedback.
-
This is looking great! Few questions/notes from me:
|
Beta Was this translation helpful? Give feedback.
-
Hi Sorry for intrusion but it's only place I could find a proper list of variables accepted by hbbr and hbbs programs. I'm just not sure how to use them when Rustdesk has been installed using the deb package for Debian ? All the more if I create a .env file in directory of hbbr/hhbs it'll read by both programs and going to generate some errors ? or can I put it in the startup script of hbbr/hbbs but how ? Thanks Vincèn |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current way of configuring hbbs/hbbr is not clear.
This is a proposal to address some issues and this should be the start for a discussion, to better rationalize the configuration.
Environment variables
Main goals:
.env
file.env
file only, or a mixhbbs
Notes:
HBBS_SECRET_KEY
andHBBS_SECRET_KEY_FILE
are mutually exclusive. The program will stop for configuration error if both are specified.HBBS_SECRET_KEY
(orHBBS_SECRET_KEY_FILE
) is required unlessHBBS_ALLOW_UNENCRYPTED=1
orHBBS_ALLOW_ANY_KEY=1
is specifiedHBBS_SECRET_KEY
should be a valid key (-
is not allowed,-
is not allowed)HBBS_SECRET_KEY_FILE
should refer to a file containing a valid key (-
is not allowed,-
is not allowed)KEY
should be a valid key or-
or-
HBBS_DB_FILE
is required. The destination file is created if not already present.hbbr
Notes:
HBBR_SECRET_KEY
andHBBR_SECRET_KEY_FILE
are mutually exclusive. The program will stop for configuration error if both are specified.HBBR_SECRET_KEY
(orHBBR_SECRET_KEY_FILE
) is required unlessHBBR_ALLOW_UNENCRYPTED=1
orHBBR_ALLOW_ANY_KEY=1
is specifiedHBBR_SECRET_KEY
should be a valid key (-
is not allowed,-
is not allowed)HBBR_SECRET_KEY_FILE
should refer to a file containing a valid key (-
is not allowed,-
is not allowed)KEY
should be a valid key or_
or–
error logging
It is possible to specify different logging level for both programs, by setting
RUST_LOG
in this way:RUST_LOG=hbbr=warn,hbbs=off
.some clarification needed
TEST_HBBS
? There's only a comment saying "temp solution to solve udp socket failure". I understand that this can be an IP address (maybe the external IP of the server when natted), but it keeps failing for me with "Error: invalid socket address syntax"--local-ip
,--mask
.PORT_FOR_API
andKEY_FOR_API
?MAX_DATABASE_CONNECTIONS
needed?--rendezvous-servers
?other ideas
Previous environment variables should generate a deprecation warning message in the log.
It's also a good idea to indicate in which version the variable will be removed (next major release?).
There's no specific log configuration, the only option is setting the
RUST_LOG
variable; this has to be improved. One idea is to differentiate log levels for the two binaries, another is to add an option to log to a file; this should cover the vast majority of cases.Instead of using
blacklist.txt
andblocklist.txt
, we can use a database. Maybe the same database we use for hbbs.Is the
.env
file really necessary? It can create confusion with docker-compose.Beta Was this translation helpful? Give feedback.
All reactions