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 domain route mapping for reverse proxy.
type Domain struct {
	database.Model
	Host          string // Full domain (e.g., "app1.congo.gg")
	Target        string // Container name (e.g., "myapp-api")
	Port          int    // Container port
	ContainerName string // Links to service container (e.g., "myapp-api")
	Active        bool
	System        bool // System routes (dashboard) are not deletable
}