domain.go

14 lines
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package models

import "congo.gg/pkg/database"

// Domain represents a Caddy route mapping.
type Domain struct {
	database.Model
	Host      string // Full domain (e.g., "app1.congo.gg")
	Target    string // Container name (e.g., "svc-myapp")
	Port      int    // Container port
	ServiceID string
	Active    bool
	System    bool // System routes (dashboard) are not deletable
}