Self-contained HTTP/HTTPS/TCP/UDP reverse proxy manager written in Go, with SQLite storage, a Bootstrap 5 admin UI (Go templates, no JS framework), and a REST API under /api/v1. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTXFrNP1imCW7jtfL5SZrw
33 lines
675 B
Go
33 lines
675 B
Go
// Command vibeproxy is a self-contained HTTP/HTTPS/TCP/UDP reverse proxy
|
|
// manager with a Bootstrap 5 web UI, SQLite storage, and a REST API.
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log/slog"
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var logger = slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: slog.LevelInfo}))
|
|
|
|
func main() {
|
|
root := &cobra.Command{
|
|
Use: "vibeproxy",
|
|
Short: "vibeproxy is a self-contained reverse proxy manager",
|
|
}
|
|
root.AddCommand(
|
|
newServeCmd(),
|
|
newVersionCmd(),
|
|
newConfigCmd(),
|
|
newAdminCmd(),
|
|
newDatabaseCmd(),
|
|
newCertificatesCmd(),
|
|
)
|
|
if err := root.Execute(); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
}
|