config

package
v1.1.0-beta.202410221121 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDefaults = map[string]any{

	"environment": "release",

	"redis.mode": "redis",

	"web.rate.fill":     10,
	"web.rate.burst":    100,
	"api.rate.interval": 10,
	"api.rate.limit":    100,

	"web.request.size_limit": 1 * 1024 * 1024,

	"web.server.cooldown_secs": 5,

	"web.secure.allowed_hosts": []string{"localhost"},
	"web.secure.ssl_host":      "localhost:7103",

	"api.list.limit.default": 25,
	"api.list.limit.min":     1,
	"api.list.limit.max":     100,

	"api.user.permissions.ttl": 600,

	"secrets.token.cost": 12,

	"api.auth.jwt.expiration_seconds.system":     60 * 60,
	"api.auth.jwt.expiration_seconds.min.system": 15 * 60,
	"api.auth.jwt.expiration_seconds.max.system": 60 * 60 * 12,

	"api.auth.jwt.expiration_seconds.user":            60 * 60 * 24 * 30,
	"api.auth.jwt.expiration_seconds.min.user":        60 * 60,
	"api.auth.jwt.expiration_seconds.max.user":        60 * 60 * 24 * 30,
	"api.auth.login.token.request.expiration_seconds": 60 * 15,

	"api.workspace.jwt.signing.method":          "RS256",
	"api.workspace.snapshot.jwt.signing.method": "HS256",
}

Functions

func Initialize

func Initialize()

TODO KAI WHAT IS THIS FOR? IS IT NEEDED

Types

This section is empty.

Jump to

Keyboard shortcuts

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