Skip to content

How to self host Piping Server

Ryo Ota edited this page Jun 12, 2023 · 29 revisions

Piping Server is designed for self-hosting easily for security and privacy purposes. It can be deployed on Linux, macOS and Windows. This introduces serveral ways to host your own Piping Server.

way 1: Docker

Run on http://localhost:8181

docker run -p 8181:8080 nwtgck/piping-server

Docker with restart=always

Run on http://localhost:8181

docker run -p 8181:80 -d --restart=always nwtgck/piping-server --http-port=80

HTTPS with Let's Encrypt

Run HTTP on http://your_domain:8080/ and HTTPS on https://your_domain:8443/

docker run -v /etc/letsencrypt:/etc/letsencrypt:ro -p 8080:8080 -p 8443:8443 nwtgck/piping-server --http-port=8080 --enable-https --https-port=8443 --key-path=/etc/letsencrypt/live/your_domain/privkey.pem --crt-path=/etc/letsencrypt/live/your_domain/fullchain.pem

way 2: single binary

curl -L https://github.com/nwtgck/piping-server-pkg/releases/download/v1.12.3/piping-server-pkg-linuxstatic-x64.tar.gz | tar xzvf -
./piping-server-pkg-linuxstatic-x64/piping-server --http-port=8181

HTTPS with Let's Encrypt

Run HTTP on http://your_domain:8080/ and HTTPS on https://your_domain:8443/

curl -L https://github.com/nwtgck/piping-server-pkg/releases/download/v1.12.3/piping-server-pkg-linuxstatic-x64.tar.gz | tar xzvf -
sudo ./piping-server-pkg-linuxstatic-x64/piping-server --http-port=8080 --enable-https --https-port=8443 --key-path=/etc/letsencrypt/live/your_domain/privkey.pem --crt-path=/etc/letsencrypt/live/your_domain/fullchain.pem

see https://github.com/nwtgck/piping-server-pkg to find ways to deploy on macOS and Windows.

way 3: Replit

Fork with https://replit.com/@nwtgck/piping
image

way 4: Glitch

Remix with https://glitch.com/~piping
image

way 5: Runkit

Clone this notebook with https://runkit.com/nwtgck/piping
image

way 6: npm

# Install
npm install -g piping-server
# Run a server
piping-server --http-port=8181

way 7: npx

npx piping-server --http-port=8181

way 8: Rust

Binaries are found in the release.
https://github.com/nwtgck/piping-server-rust

way 9: Go

https://github.com/nwtgck/go-piping-server