Add proxy auth ui

This commit is contained in:
Eduard Gert
2026-02-03 19:05:55 +01:00
parent 92f72bfce6
commit 733ea77c5c
44 changed files with 5479 additions and 13 deletions

View File

@@ -36,6 +36,25 @@ Certificate generation can either be via ACME (by default, using Let's Encrypt,
When not using ACME, the proxy server attempts to load a certificate and key from the files `tls.crt` and `tls.key` in a specified certificate directory.
When using ACME, the proxy server will store generated certificates in the specified certificate directory.
## Auth UI
The authentication UI is a Vite + React application located in the `web/` directory. It is embedded into the Go binary at build time.
To build the UI:
```bash
cd web
npm install
npm run build
```
For UI development with hot reload (served at http://localhost:3031):
```bash
npm run dev
```
The built assets in `web/dist/` are embedded via `//go:embed` and served by the `web.ServeHTTP` handler.
## Configuration
NetBird Proxy deployment configuration is via flags or environment variables, with flags taking precedence over the environment.