forked from Green-Sky/tomato
Squashed 'external/toxcore/c-toxcore/' changes from 640e6cace..e58eb27a8
e58eb27a8 fix(toxav): remove extra copy of video frame on encode Tested and works, but there might be alignment issues and other stuff. 206ea3530 refactor: Explicitly pass dependencies to constructors. 7cefa93cf fix(toxencryptsave): Wipe salt and passkey after usage. 7c3be2342 refactor: Add file/line to tox-bootstrapd logging. f84e8cdce refactor: Move loglogdata out of network.c. 390f7db06 refactor: Move random and memory OS-specifics to `os_*` files. REVERT: 640e6cace fix(toxav): remove extra copy of video frame on encode Tested and works, but there might be alignment issues and other stuff. git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: e58eb27a84f9fa0cd996868e079f39e90a5c04b6
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Stage 1 - Compile websockify.
|
||||
FROM toxchat/bootstrap-node:latest AS tox
|
||||
FROM golang:1.17-alpine AS websockify
|
||||
FROM golang:1.23-alpine3.21 AS websockify
|
||||
|
||||
COPY websockify /work/websockify
|
||||
RUN cd /work/websockify && go mod download github.com/gorilla/websocket && go install
|
||||
@@ -25,5 +25,7 @@ USER tox
|
||||
#RUN /usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf --log-backend stdout \
|
||||
# && sleep 1
|
||||
|
||||
COPY tox-bootstrapd.conf /etc/
|
||||
|
||||
WORKDIR /web
|
||||
CMD ["/entrypoint.sh"]
|
||||
|
||||
12
other/bootstrap_daemon/websocket/build.sh
Executable file
12
other/bootstrap_daemon/websocket/build.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
GIT_ROOT="$(git rev-parse --show-toplevel)"
|
||||
|
||||
# Build bootstrap daemon first.
|
||||
"$GIT_ROOT/other/bootstrap_daemon/docker/build.sh"
|
||||
|
||||
# Build websocket server.
|
||||
cd "$GIT_ROOT/other/bootstrap_daemon/websocket"
|
||||
docker build -t toxchat/bootstrap-node:latest-websocket .
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
set -eux
|
||||
|
||||
/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf --log-backend stdout
|
||||
/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf --log-backend stdout --trace
|
||||
/usr/local/bin/websockify -l "0.0.0.0:$PORT" -t 127.0.0.1:33445
|
||||
|
||||
21
other/bootstrap_daemon/websocket/tox-bootstrapd.conf
Normal file
21
other/bootstrap_daemon/websocket/tox-bootstrapd.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
# Tox WebSocket bootstrap daemon configuration file.
|
||||
|
||||
port = 33445
|
||||
|
||||
keys_file_path = "/var/lib/tox-bootstrapd/keys"
|
||||
|
||||
pid_file_path = "/var/run/tox-bootstrapd/tox-bootstrapd.pid"
|
||||
|
||||
enable_ipv6 = false
|
||||
enable_ipv4_fallback = true
|
||||
enable_lan_discovery = false
|
||||
|
||||
enable_tcp_relay = true
|
||||
tcp_relay_ports = [443, 3389, 33445]
|
||||
|
||||
enable_motd = true
|
||||
|
||||
motd = "tox-bootstrapd"
|
||||
|
||||
# No bootstrap nodes for now, since none of them support WebSocket.
|
||||
bootstrap_nodes = ()
|
||||
Reference in New Issue
Block a user