Mhdi-kr / wireguard-insights

Wireguard administration HTTP API and web based panel
14 stars 5 forks source link
admin-dashboard express typescript vue wireguard

πŸ‰ Wireguard Insights

A self-hosted HTTP and web-based adapter for wireguard servers to manage peers and configuration.

Features

Story

I was looking for a usable and preferably good-looking UI to manage my Wireguard peers and server. I've tested many repositories with quite high number of stars but none of them satisfied me because I was looking for:

Installation

You can try using this software on your local machine or deploy it else where and keep it running with PM2.

Local machine

  1. Clone this git repository
  2. Install dependencies for both client and server packages using single pnpm install
  3. Run the server running pnpm server:start
  4. Run the client running pnpm client:start

PM2

# install node, npm and pm2
npm i -g pm2

# start both client and server
pm2 start deployment/pm2/prod.config.js

# start the client only
pm2 start deployment/pm2/prod.config.js --only @wg-insights/client

# start the server only
pm2 start deployment/pm2/prod.config.js --only @wg-insights/server

Development

  1. Clone this git repository
  2. Install dependencies for client and server packages running pnpm install
  3. Run the server running pnpm server:dev
  4. Run the client running pnpm client:dev

Client uses HMR in vite and the server uses nodemon for you to be able to iterate quickly.

Environment variables