Documentation
¶
Index ¶
Constants ¶
View Source
const APPLICATION_NAME = "inference-gateway"
View Source
const VERSION = "v0.5.0-rc.10"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// General settings
Environment string `env:"ENVIRONMENT, default=production" description:"The environment"`
EnableTelemetry bool `env:"ENABLE_TELEMETRY, default=false" description:"Enable telemetry"`
EnableAuth bool `env:"ENABLE_AUTH, default=false" description:"Enable authentication"`
// OIDC settings
OIDC *OIDC `env:", prefix=OIDC_" description:"OIDC configuration"`
// Server settings
Server *ServerConfig `env:", prefix=SERVER_" description:"Server configuration"`
// Providers map
Providers map[providers.Provider]*providers.Config
}
Config holds the configuration for the Inference Gateway
type OIDC ¶ added in v0.1.6
type OIDC struct {
IssuerUrl string `env:"ISSUER_URL, default=http://keycloak:8080/realms/inference-gateway-realm" description:"OIDC issuer URL"`
ClientId string `env:"CLIENT_ID, default=inference-gateway-client" type:"secret" description:"OIDC client ID"`
ClientSecret string `env:"CLIENT_SECRET" type:"secret" description:"OIDC client secret"`
}
OIDC configuration
type ServerConfig ¶ added in v0.1.6
type ServerConfig struct {
Host string `env:"HOST, default=0.0.0.0" description:"Server host"`
Port string `env:"PORT, default=8080" description:"Server port"`
ReadTimeout time.Duration `env:"READ_TIMEOUT, default=30s" description:"Read timeout"`
WriteTimeout time.Duration `env:"WRITE_TIMEOUT, default=30s" description:"Write timeout"`
IdleTimeout time.Duration `env:"IDLE_TIMEOUT, default=120s" description:"Idle timeout"`
TlsCertPath string `env:"TLS_CERT_PATH" description:"TLS certificate path"`
TlsKeyPath string `env:"TLS_KEY_PATH" description:"TLS key path"`
}
Server configuration
Click to show internal directories.
Click to hide internal directories.