diff options
author | Paolo Asperti <[email protected]> | 2022-06-22 20:56:01 +0200 |
---|---|---|
committer | Paolo Asperti <[email protected]> | 2022-06-22 20:56:01 +0200 |
commit | e4b2fc15b6f4251b60ade38d5a0a61e6a4fed744 (patch) | |
tree | 5b7467d399dffa735e533afa45a0e5061c774b3b /docker | |
parent | 38dee4794a3299dec035b84b4f0a1c0e8ab1a230 (diff) | |
download | rustdesk-server-e4b2fc15b6f4251b60ade38d5a0a61e6a4fed744.tar.gz rustdesk-server-e4b2fc15b6f4251b60ade38d5a0a61e6a4fed744.zip |
added ENV forcing only encrypted connections
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/Dockerfile | 1 | ||||
-rwxr-xr-x | docker/rootfs/etc/s6-overlay/s6-rc.d/hbbs/run | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 0da0e34..c68677b 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,6 +11,7 @@ RUN \ COPY rootfs / ENV RELAY relay.example.com +ENV ENCRYPTED_ONLY 0 EXPOSE 21115 21116 21116/udp 21117 21118 21119 diff --git a/docker/rootfs/etc/s6-overlay/s6-rc.d/hbbs/run b/docker/rootfs/etc/s6-overlay/s6-rc.d/hbbs/run index ae3b02a..383f7ce 100755 --- a/docker/rootfs/etc/s6-overlay/s6-rc.d/hbbs/run +++ b/docker/rootfs/etc/s6-overlay/s6-rc.d/hbbs/run @@ -1,3 +1,5 @@ -#!/command/execlineb -P -posix-cd /data -/usr/bin/hbbs -r $RELAY +#!/command/with-contenv sh +cd /data +PARAMS= +[ "${ENCRYPTED_ONLY}" = "1" ] && PARAMS="-k _" +/usr/bin/hbbs -r $RELAY $PARAMS |