一個適用於小型團隊的 wireguard vpn 分發器
- Create
.env
from.env.example
- Generate public / private keys for vpnserver and client. Place into
app/
wg genkey | tee server_privateKey | wg pubkey > server_publicKey
wg genkey | tee -a client_privateKey | wg pubkey >> client_publicKey
...
wg genkey | tee -a client_privateKey | wg pubkey >> client_publicKey
- Prepate SSL certificate
fullchain1.pem
and private keyprivkey1.pem
. Place intossl/
sudo certbot certonly --standalone -d <your domain>
- Start container
docker-compose up -d