config

package
v0.0.0-...-3eb0fa6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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 - 各種設定用

func ReadConfig

func ReadConfig() (*Config, error)

type Email

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

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の認証設定

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL