Self hosted - Setup vortex #187
-
Hi, Recently I am trying to host my own instance of revolt but I have some troubles with the voice server Vortex. Despite the lack of documentation and docker image, I made my own and set up by digging into the source code, but I encounter some problem and I need some help. The Docker file: FROM rustlang/rust:nightly-slim AS builder
USER 0:0
WORKDIR /home/rust/src
RUN USER=root cargo new --bin vortex
WORKDIR /home/rust/src/vortex
RUN apt-get update && apt-get install -y build-essential nodejs python libssl-dev pkg-config
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo build --release && cargo install --locked --path .
# Bundle Stage
FROM debian:buster-slim
RUN apt-get update && apt-get install -y ca-certificates
COPY --from=builder /usr/local/cargo/bin/vortex ./
EXPOSE 8080
EXPOSE 10000-11000
ENV RTC_IPS 0.0.0.0
ENV RTC_MIN_PORT 10000
ENV RTC_MAX_PORT 11000
ENV HTTP_HOST 0.0.0.0:8080
#ENV WS_URL
#ENV MANAGE_TOKEN
CMD ["./vortex"] I set VOSO_MANAGE_TOKEN, VOSO_PUBLIC_URL and VOSO_WS_HOST for the delta server. location /vortex/ {
proxy_pass http://revolt_vortex:8080/;
proxy_set_header X-Server-IP $server_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-HTTPS $https;
proxy_set_header X-Server-Port $server_port;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
}
location /vortex-ws {
proxy_pass http://revolt_vortex:8080/;
proxy_set_header X-Server-IP $server_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-HTTPS $https;
proxy_set_header X-Server-Port $server_port;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_http_version 1.1;
} On my client side, I success the join_call request, but fail in the web socket communication:
Can someone help me with this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Vortex was in the middle of being rewritten and had a few bugs that prevented revite from authenticating. Revite can now connect as of this commit, and vortex now also has a Dockerfile. |
Beta Was this translation helpful? Give feedback.
Vortex was in the middle of being rewritten and had a few bugs that prevented revite from authenticating.
Revite can now connect as of this commit, and vortex now also has a Dockerfile.