Jump to content

WireGuard: Difference between revisions

No change in size ,  15 July 2020
Line 74: Line 74:
Below is my setup. I have subspace running on port 52395. Apache and certbot manages SSL/TLS and proxies to this local port.
Below is my setup. I have subspace running on port 52395. Apache and certbot manages SSL/TLS and proxies to this local port.
<pre>
<pre>
mkdir -p /home/david/wireguard/data
mkdir -p /home/$USER/wireguard/data
docker create \
docker create \
     --name subspace \
     --name subspace \
Line 81: Line 81:
     --cap-add NET_ADMIN \
     --cap-add NET_ADMIN \
     --volume /usr/bin/wg:/usr/bin/wg \
     --volume /usr/bin/wg:/usr/bin/wg \
     --volume /home/david/wireguard/data:/data \
     --volume /home/$USER/wireguard/data:/data \
     --env SUBSPACE_HTTP_HOST=wireguard.davidl.me \
     --env SUBSPACE_HTTP_HOST=wireguard.davidl.me \
     --env SUBSPACE_HTTP_ADDR="localhost:52395" \
     --env SUBSPACE_HTTP_ADDR="localhost:52395" \