package
Version:
v0.0.0-...-3eb0fa6
Opens a new window with list of versions in this module.
Published: Apr 19, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Database string `env:"DATABASE_URL"`
BaseURL string `env:"BASE_URL" envDefault:"http://localhost:10080/"`
JWTKey string `env:"JWT_KEY"`
ExternalIntegrationTokens []string `env:"EXTERNAL_INTEGRATION_TOKENS"`
OpenIDConnect OpenIDConnect
Email Email
}
Config - 各種設定用
type Email struct {
SMTPServer string `env:"SMTP_SERVER"`
SMTPPort string `env:"SMTP_PORT" envDefault:"587"`
Username string `env:"SMTP_USERNAME"`
Password string `env:"SMTP_PASSWORD"`
From string `env:"SMTP_FROM"`
}
Email - Email周りの設定
type OpenIDConnect struct {
ClientID string `env:"OIDC_CLIENT_ID"`
ClientSecret string `env:"OIDC_CLIENT_SECRET"`
RedirectURL string `env:"OIDC_REDIRECT_URL"`
ProviderURL string `env:"OIDC_PROVIDER_URL"`
}
OpenIDConnect - Auth0のOpenID Connectの認証設定
Source Files
¶
Click to show internal directories.
Click to hide internal directories.