config

package
v1.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func FetchSystemConfigs() (Config, error)

Jump to

Keyboard shortcuts

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