- nginx
- docker compose
- link the nginx configs
ln -s /path/to/wireguard/wg-nginx-conf /etc/nginx/sites-available/wg
ln -s /etc/nginx/sites-available/wg /etc/nginx/sites-enabled/wg
- test the new nginx config
nginx -t
- reload nginx
systemctl reload nginx
- link the service
ln -s /path/to/wireguard/wireguard.service /etc/systemd/system/wireguard.service
- reload daemon
systemctl daemon-reload
- enable service
systemctl enable wireguard.service
- start service
systemctl start wireguard.service