mirror of
https://github.com/yusing/godoxy.git
synced 2026-02-22 02:17:45 +01:00
18 lines
590 B
Go
18 lines
590 B
Go
package entrypoint
|
|
|
|
import (
|
|
"github.com/yusing/godoxy/internal/logging/accesslog"
|
|
"github.com/yusing/godoxy/internal/route/rules"
|
|
)
|
|
|
|
// Config defines the entrypoint configuration for proxy handling,
|
|
// including proxy protocol support, routing rules, middlewares, and access logging.
|
|
type Config struct {
|
|
SupportProxyProtocol bool `json:"support_proxy_protocol"`
|
|
Rules struct {
|
|
NotFound rules.Rules `json:"not_found"`
|
|
} `json:"rules"`
|
|
Middlewares []map[string]any `json:"middlewares"`
|
|
AccessLog *accesslog.RequestLoggerConfig `json:"access_log"`
|
|
}
|