Configuration

Variable
FG_MEMBERS_URLThe public URL. Default: the Vercel deployment's domain, else http://localhost:3020.
FG_MEMBERS_ID_URLThe id service's issuer.
FG_MEMBERS_CLIENT_IDAs enrolled at the id service. Default members.
FG_MEMBERS_CLIENT_SECRETIts FG_ID_SERVICE_MEMBERS_SECRET.
FG_MEMBERS_SECRETEncrypts the session cookie. Required anywhere but localhost.
FG_MEMBERS_DATABASE_URLAny Postgres; DATABASE_URL, then POSTGRES_URL, when not set.
FG_MEMBERS_DATA_DIRThe embedded database. Default .data/members.
FG_MEMBERS_EMBEDDED_DATABASE_PORTDefault 54320.
FG_MEMBERS_DATABASE_POOL_SIZEConnections to a real Postgres. Default 5.
FG_MEMBERS_MIGRATIONS_DIRWhere the migrations are, when not beside the module — in a monolith, say.
FG_POLICY_BUNDLEA policy from elsewhere than this deployment's build: a path or https URL, which must be signed. none for the built-in rules. Without it, the policy the deployment was built with.
FG_POLICY_PUBLIC_KEYThe organization's key, which that policy must be signed with.
FG_POLICY_ALLOW_UNSIGNEDtrue to run an unsigned FG_POLICY_BUNDLE, for trying policy locally.
FG_POLICY_OPA_URLAn OPA server to ask instead.
FG_MEMBERS_POLICY_PACKAGEDefault fairgarden/members.
FG_MEMBERS_POLICY_LOG_RETENTION_DAYSHow long decisions are kept. Default 400.
FG_MEMBERS_POLICY_LOG_STDOUTtrue to also write each decision to standard output.