Documentation
¶
Overview ¶
Package config loads runtime settings, carrying over the properties the Java service read from application.properties.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// HTTPAddr is the listen address, from server.port.
HTTPAddr string
// Database
DSN string
// AutoMigrate mirrors spring.jpa.hibernate.ddl-auto: on, the schema is created or
// updated from the entity model at startup.
AutoMigrate bool
// CORSAllowedOrigins is airavata.cors.allowed-origins.
CORSAllowedOrigins []string
// CILogon. Issuer is where the dashboard's sign-in discovers the authorization
// and token endpoints; the client id and secret serve both sign-in and
// introspection.
Issuer string
IntrospectionURI string
UserInfoURI string
ClientID string
ClientSecret string
// Root account
RootAccountEnabled bool
RootAccountToken string
EmailMonitorAddress string
EmailMonitorAppPassword string
WorkflowBackendType string
WorkflowBackendSqlitePath string
// DashboardDir is the dashboard's static export (dashboard/out after "npm run
// build"), served under /dashboard/ alongside the API. Empty disables it.
DashboardDir string
// PublicURL is where compute nodes reach this server, http(s)://host[:port]. A
// job's Linkspan dials its ws(s) form to link back; see internal/link.
PublicURL string
}
Config is the resolved server configuration.
func FetchSystemConfigs ¶
Click to show internal directories.
Click to hide internal directories.