Skip to content

Playground project to test alpine.js in combination with golang and embedded files in binaries

License

Notifications You must be signed in to change notification settings

alxndr13/wireguard_dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wireguard Dashboard

This project is a playground to learn more about alpine.js, embedding files in go binaries and using go-gin as a web framework.

Preview

What this program does

Uses the wireguard client to retrieve all active wireguard devices and exposes them via a REST API available at /info.

Provides a frontend, written in alpine.js (thanks for the help @andaryjo) and plain html which is available at /dashboard. Those html files are embedded in the final go binary.

Environment Variables

WG_EXTERNAL_URL="http://localhost:3001"
WG_BIND_ADDRESS="localhost:3001"

Development Setup

I'm using air for the automatic reload upon changes.

To start the app:

sudo air

The app is then available at localhost:3001. (when using defaults)

About

Playground project to test alpine.js in combination with golang and embedded files in binaries

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published