mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-07-01 23:35:38 +00:00
added ENV forcing only encrypted connections
This commit is contained in:
parent
38dee4794a
commit
e4b2fc15b6
@ -11,6 +11,7 @@ RUN \
|
|||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
ENV RELAY relay.example.com
|
ENV RELAY relay.example.com
|
||||||
|
ENV ENCRYPTED_ONLY 0
|
||||||
|
|
||||||
EXPOSE 21115 21116 21116/udp 21117 21118 21119
|
EXPOSE 21115 21116 21116/udp 21117 21118 21119
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
#!/command/execlineb -P
|
#!/command/with-contenv sh
|
||||||
posix-cd /data
|
cd /data
|
||||||
/usr/bin/hbbs -r $RELAY
|
PARAMS=
|
||||||
|
[ "${ENCRYPTED_ONLY}" = "1" ] && PARAMS="-k _"
|
||||||
|
/usr/bin/hbbs -r $RELAY $PARAMS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user