Files
browser/platform/.env.example
T

42 lines
1.9 KiB
Bash

PLATFORM_ADDR=:8080
# Platform metadata storage:
# file -> local durable JSON snapshot at PLATFORM_METADATA_PATH.
# mysql -> MySQL metadata snapshot table using PLATFORM_MYSQL_DSN.
# memory -> tests/disposable local runs only.
PLATFORM_STORAGE_BACKEND=file
# To use local MySQL metadata, change PLATFORM_STORAGE_BACKEND above from file to mysql,
# then uncomment and adjust:
# PLATFORM_MYSQL_DSN=platform:platform@tcp(127.0.0.1:3306)/platform?parseTime=true
PLATFORM_DATA_DIR=.platform-data
PLATFORM_METADATA_PATH=.platform-data/metadata.json
# Log bodies are intentionally separate from metadata.
# MySQL metadata still defaults logs to segmented files; do not put hundreds/thousands
# of server log lines into MySQL rows.
PLATFORM_LOG_BODY_BACKEND=file
PLATFORM_LOG_DIR=.platform-data/logs
PLATFORM_ARTIFACT_DIR=.platform-data/artifacts
# Optional one-time bootstrap. Leave unset in normal deployments after an admin exists.
# The password is read from process environment and only a password verifier is persisted.
# PLATFORM_BOOTSTRAP_ADMIN_EMAIL=operator@example.test
# PLATFORM_BOOTSTRAP_ADMIN_PASSWORD=replace-with-a-long-local-secret
# Required outside disposable local development. This protects persisted component-key ciphertext.
# PLATFORM_SECRET_ENVELOPE_KEY=replace-with-at-least-32-random-characters
# Platform-owned distribution builder. Build the first-party image from
# platform/distribution-builder before starting the platform.
PLATFORM_BUILDER_DOCKER_BINARY=docker
PLATFORM_BUILDER_IMAGE=browser-platform-distribution-builder:1.0.0
PLATFORM_BUILDER_SOURCE_DIR=../run
PLATFORM_BUILDER_SOURCE_REPOSITORY=git@git.npc0.com:admin343/run.git
PLATFORM_BUILDER_SOURCE_REVISION=main
PLATFORM_BUILDER_WORKSPACE_DIR=.platform-data/distribution-builds
PLATFORM_BUILDER_TIMEOUT_SECONDS=1800
# URL embedded into generated Run packages; override for tunnel or production access.
PLATFORM_RUN_RELEASE_URL=http://127.0.0.1:8080