Go backend that drives kernel WireGuard over netlink (wireguard-go as the fallback), nftables NAT with MSS clamping, forwarding and buffer sysctls, SQLite for peers, users, sessions, traffic history and the audit log. React console: dashboard with live rates and usage history, peer management with QR codes and .conf downloads, disconnect, session reset, key rotation, expiry, client-supplied keys, settings, users with admin and viewer roles, two-factor authentication with recovery codes, audit log. Docker image on Alpine with compose files for bridged and host networking, CI and GHCR publish workflows, performance notes.
20 lines
511 B
TypeScript
20 lines
511 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// The build lands inside the Go module so `go build` embeds it.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: "../internal/server/static/dist",
|
|
emptyOutDir: true,
|
|
sourcemap: false,
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
"/api": { target: "http://127.0.0.1:51821", changeOrigin: false },
|
|
"/metrics": { target: "http://127.0.0.1:51821", changeOrigin: false },
|
|
},
|
|
},
|
|
});
|