Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultJWTSecret = "engram-dev-jwt-secret-for-local-smoke-1234"
View Source
const DefaultMaxPushBodyBytes int64 = 8 * 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func IsDefaultJWTSecret ¶ added in v1.13.0
Types ¶
type Config ¶
type Config struct {
DSN string
JWTSecret string
CORSOrigins []string
MaxPool int
Port int
BindHost string
AdminToken string
AllowedProjects []string
MaxPushBodyBytes int64
// TokenPepper is the dedicated secret used to hash managed cloud tokens
// (see internal/cloud/auth.ManagedTokenHasher). It MUST be distinct from
// JWTSecret so rotating the dashboard/session signing secret does not
// implicitly rotate or invalidate stored managed token verifiers.
TokenPepper string
}
func ConfigFromEnv ¶
func ConfigFromEnv() Config
func DefaultConfig ¶
func DefaultConfig() Config
Directories
¶
| Path | Synopsis |
|---|---|
|
Package autosync implements a lease-guarded background sync manager for Engram's local-first cloud replication.
|
Package autosync implements a lease-guarded background sync manager for Engram's local-first cloud replication. |
|
templ: version: v0.3.1001
|
templ: version: v0.3.1001 |
Click to show internal directories.
Click to hide internal directories.