config

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPeriodicTaskScript = `
echo 'You can write any bash script here and ran periodically!'
`
View Source
const DefaultScript = `
# Special variables injected by RapidForge, check tooltip
# echo 'You can write any bash script here!'
`
View Source
const License = `` /* 631-byte string literal not displayed */

Variables

This section is empty.

Functions

func BaseUrl

func BaseUrl() string

func CredentialCallbackUrl

func CredentialCallbackUrl() string

func SetAuthSecretKey

func SetAuthSecretKey(key string)

func SetEnv

func SetEnv(envName string)

Types

type Config

type Config struct {
	Env               string `env:"RF_ENV,default=production"`
	DatabaseUrl       string `env:"RF_DATABASE_URL, default=rapidforge.sqlite3"`
	KVUrl             string `env:"RF_KV_URL, default=rapidforgekv.sqlite3"`
	ErrorReport       string `env:"RF_ERROR_REPORT"`
	Domain            string `env:"RF_DOMAIN, default=localhost"`
	Port              string `env:"RF_PORT, default=:4000"`
	PemData           string `env:"TLS_CERT"`
	Cloud             bool
	TokenExpiry       time.Duration
	LoadBalancer      bool
	FECacheBuster     string
	Timeout           time.Duration
	AuthSecretKey     string
	AuthDuration      time.Duration
	LoginAttemptCount int
}

func Get

func Get() Config

func (Config) AuthKey

func (c Config) AuthKey() string

func (Config) JWTSecretKey

func (c Config) JWTSecretKey() []byte

func (Config) TLSCert

func (c Config) TLSCert() *tls.Certificate

Jump to

Keyboard shortcuts

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