tnnl-cli 0.3.0

Expose localhost to the internet. Self-hosted ngrok alternative.
Documentation
1
2
3
4
5
6
7
8
9
10
FROM rust:1.85-slim AS builder
WORKDIR /app
COPY . .
RUN cargo build --release

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/tnnl /usr/local/bin/tnnl
EXPOSE 8080 9443
CMD ["sh", "-c", "exec tnnl server --domain ${DOMAIN} --http-port 8080 --control-port 9443 ${TOKEN:+--token ${TOKEN}}"]