Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeBlockPage ¶
func ServeBlockPage(w http.ResponseWriter)
ServeBlockPage serves the HTML 403 block page
Types ¶
type Config ¶
type Config struct {
BootstrapToken string `json:"bootstrapToken,omitempty"`
LogLevel string `json:"logLevel,omitempty"`
MachineID string `json:"machineID,omitempty"` // Optional machine ID override (defaults to random UUID)
IPStrategy string `json:"ipStrategy,omitempty"` // "direct" (default), "xff", "real-ip", "custom"
TrustedHeader string `json:"trustedHeader,omitempty"` // Custom header name when ipStrategy is "custom"
TrustedProxies []string `json:"trustedProxies,omitempty"` // List of trusted proxy IPs or CIDR ranges
}
Config holds the plugin configuration
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration
type EllioMiddleware ¶
type EllioMiddleware struct {
// contains filtered or unexported fields
}
EllioMiddleware is the main plugin structure
func (*EllioMiddleware) ServeHTTP ¶
func (e *EllioMiddleware) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP handles incoming requests
Click to show internal directories.
Click to hide internal directories.
