- Add ProxyHost, CaddyConfig, RemoteServer, SSL, AccessList, User, Setting, ImportSession models - Implement ProxyHostService and RemoteServerService with domain/name uniqueness validation - Add Caddyfile import handler with conflict detection and user review workflow - Create ProxyHostHandler and RemoteServerHandler with full CRUD operations - Wire up Gin/GORM/SQLite dependencies and create missing internal packages - Add database connection layer, server routing, and version info - Update routes to register all new handlers and auto-migrate models - Configure import environment variables and mount points Addresses Issue #5 (data persistence) and Issue #43 (remote servers) Backend now compiles cleanly with go build
21 lines
499 B
Go
21 lines
499 B
Go
package version
|
|
|
|
const (
|
|
// Name of the application
|
|
Name = "CaddyProxyManagerPlus"
|
|
// Version is the semantic version
|
|
Version = "0.1.0"
|
|
// BuildTime is set during build via ldflags
|
|
BuildTime = "unknown"
|
|
// GitCommit is set during build via ldflags
|
|
GitCommit = "unknown"
|
|
)
|
|
|
|
// Full returns the complete version string.
|
|
func Full() string {
|
|
if BuildTime != "unknown" && GitCommit != "unknown" {
|
|
return Version + " (commit: " + GitCommit + ", built: " + BuildTime + ")"
|
|
}
|
|
return Version
|
|
}
|