Skip to main content

Configuration

Configuration in acme-vue-encore is split between environment variables (for non-sensitive settings) and Encore secrets (for sensitive credentials).

Environment Variables

These are typically set in apps/api/.env for local development or injected by the deployment environment.

VariableDescriptionDefault
NODE_ENVEnvironment mode (development or production).development
AUTH_DRIVERThe SSO driver to use (mock or rauthy).mock
LOG_PIIWhether to log PII. Must be false in production.false
PRIVATE_API_BASE_URLUpstream URL for the BFF gateway proxy.-
GATEWAY_OAUTH_TOKEN_URLToken endpoint for the S2S gateway token.-
REDIS_URLRedis connection string for rate limiting.-
RAUTHY_ISSUEROIDC Issuer URL (if AUTH_DRIVER=rauthy).-
RAUTHY_REDIRECT_URIOIDC Callback URL.-
RAUTHY_SCOPESOIDC scopes to request.openid profile email groups
RAUTHY_DEFAULT_ROLEFallback role if none provided by IdP.user

Encore Secrets

Secrets are managed via the Encore CLI and are never committed to the repository.

# Set a secret for local development
encore secret set --type local SECRET_NAME

# Set a secret for production
encore secret set --type prod SECRET_NAME
SecretDescription
CSRF_SECRETUsed to sign CSRF tokens.
JWT_PRIVATE_KEYRS256 private key for signing access tokens.
JWT_PUBLIC_KEYRS256 public key for verifying access tokens.
JWT_REFRESH_PRIVATE_KEYRS256 private key for signing refresh tokens.
JWT_REFRESH_PUBLIC_KEYRS256 public key for verifying refresh tokens.
GATEWAY_OAUTH_CLIENT_IDClient ID for the S2S gateway token.
GATEWAY_OAUTH_CLIENT_SECRETClient Secret for the S2S gateway token.
RAUTHY_CLIENT_IDOIDC Client ID (if AUTH_DRIVER=rauthy).
RAUTHY_CLIENT_SECRETOIDC Client Secret.