Documentation
¶
Overview ¶
Package webrelay serves the embedded croc web client and exposes its deliberately small WebSocket-to-TCP bridge. The bridge never participates in the croc protocol; it only forwards an opaque byte stream to one fixed relay host and an allowlisted relay port.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ListenAddress string
RelayHosts []string
// RelayHost is retained as a single-host configuration shorthand.
RelayHost string
AllowedPorts []string
OriginPatterns []string
DialTimeout time.Duration
PublicAddress string
RelayPassword string
StaticFiles fs.FS
StoreService *store.Service
UmamiURL string
UmamiWebsiteID string
GoogleAdSense string
GoogleAdsTXT string
// contains filtered or unexported fields
}
Config configures the unified croc web server.