services -> domains
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/wild-cloud/wild-central/internal/services"
|
||||
"github.com/wild-cloud/wild-central/internal/domains"
|
||||
)
|
||||
|
||||
// InstanceRoute represents a Wild Cloud instance's ingress routing configuration
|
||||
@@ -36,7 +36,7 @@ type HTTPRouteBackend struct {
|
||||
Paths []string // path prefixes (empty = catch-all)
|
||||
Backend string // host:port
|
||||
HealthPath string // optional health check path
|
||||
Headers *services.HeaderConfig // per-route headers
|
||||
Headers *domains.HeaderConfig // per-route headers
|
||||
IPAllow []string // per-route CIDR whitelist
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/wild-cloud/wild-central/internal/services"
|
||||
"github.com/wild-cloud/wild-central/internal/domains"
|
||||
)
|
||||
|
||||
func TestNewManager_DefaultPath(t *testing.T) {
|
||||
@@ -606,7 +606,7 @@ func TestGenerateWithOpts_ResponseHeaders(t *testing.T) {
|
||||
Domain: "plausible.cloud.payne.io",
|
||||
Routes: []HTTPRouteBackend{{
|
||||
Backend: "192.168.8.80:80",
|
||||
Headers: &services.HeaderConfig{
|
||||
Headers: &domains.HeaderConfig{
|
||||
Response: map[string]string{
|
||||
"Access-Control-Allow-Private-Network": "true",
|
||||
},
|
||||
@@ -631,7 +631,7 @@ func TestGenerateWithOpts_RequestHeaders(t *testing.T) {
|
||||
Domain: "api.payne.io",
|
||||
Routes: []HTTPRouteBackend{{
|
||||
Backend: "192.168.8.80:80",
|
||||
Headers: &services.HeaderConfig{
|
||||
Headers: &domains.HeaderConfig{
|
||||
Request: map[string]string{
|
||||
"X-Forwarded-Proto": "https",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user