Documentation
¶
Overview ¶
Package proxy implements the LLM gateway localhost reverse proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.26.1
type Option func(*Proxy)
Option configures optional Proxy behaviour.
func WithTLSSkipVerify ¶ added in v0.26.1
WithTLSSkipVerify disables TLS certificate verification for the upstream gateway connection. This is intended for local development only (e.g., self-signed certificates). It must NOT be used in production.
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is a localhost reverse proxy that strips incoming Authorization headers and injects fresh OIDC tokens before forwarding to the LLM gateway.
func New ¶
New creates a Proxy and binds the TCP listener immediately so that Addr() returns the correct address before Start is called. Returns an error if GatewayURL is unparsable, the listen address is not loopback, or the port is already in use.