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 CredentialCallbackUrl ¶
func CredentialCallbackUrl() string
func SetAuthSecretKey ¶
func SetAuthSecretKey(key 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 `env:"RF_CLOUD, default=false"`
TokenExpiry time.Duration
LoadBalancer bool `env:"RF_LB, default=true"`
FECacheBuster string
Timeout time.Duration
AuthSecretKey string
AuthDuration time.Duration
LoginAttemptCount int
}
func (Config) IsDemoMode ¶ added in v0.13.0
func (Config) JWTSecretKey ¶
func (Config) TLSCert ¶
func (c Config) TLSCert() *tls.Certificate
Click to show internal directories.
Click to hide internal directories.