Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Environment string `default:"prod"` PostgresDSN string `split_words:"true"` PortalAPIListenAddress string `default:":8081" split_words:"true"` PortalAPIBaseAddress string `default:"http://localhost:8081" split_words:"true"` PortalAPIAllowedOrigin string `default:"http://localhost:3000" split_words:"true"` OIDCProviderURL string `split_words:"true"` OIDCClientID string `split_words:"true"` OIDCClientSecret string `split_words:"true"` DataAPIListenAddress string `default:":8082" split_words:"true"` }
Config represents the application configuration structure
func LoadFromEnv ¶
LoadFromEnv loads a new configuration structure using environment variables and an optional .env file
func (*Config) IsEnvProduction ¶
IsEnvProduction returns whether the application runs in production environment
func (*Config) IsPortalAPISecure ¶
IsPortalAPISecure returns whether the portal API uses SSL in the end
Click to show internal directories.
Click to hide internal directories.