47 lines
1.2 KiB
TOML
47 lines
1.2 KiB
TOML
|
|
# VAPORA Server Configuration
|
||
|
|
# Phase 0: Environment-based configuration
|
||
|
|
|
||
|
|
[server]
|
||
|
|
# Server will read from environment variables:
|
||
|
|
# VAPORA_HOST (default: 127.0.0.1)
|
||
|
|
# VAPORA_PORT (default: 3000)
|
||
|
|
host = "${VAPORA_HOST:-127.0.0.1}"
|
||
|
|
port = ${VAPORA_PORT:-3000}
|
||
|
|
|
||
|
|
[server.tls]
|
||
|
|
# TLS configuration (optional)
|
||
|
|
# VAPORA_TLS_CERT_PATH
|
||
|
|
# VAPORA_TLS_KEY_PATH
|
||
|
|
enabled = ${VAPORA_TLS_ENABLED:-false}
|
||
|
|
cert_path = "${VAPORA_TLS_CERT_PATH:-}"
|
||
|
|
key_path = "${VAPORA_TLS_KEY_PATH:-}"
|
||
|
|
|
||
|
|
[database]
|
||
|
|
# Database connection
|
||
|
|
# VAPORA_DB_URL (required)
|
||
|
|
url = "${VAPORA_DB_URL}"
|
||
|
|
max_connections = ${VAPORA_DB_MAX_CONNECTIONS:-10}
|
||
|
|
|
||
|
|
[nats]
|
||
|
|
# NATS JetStream configuration
|
||
|
|
# VAPORA_NATS_URL (default: nats://localhost:4222)
|
||
|
|
url = "${VAPORA_NATS_URL:-nats://localhost:4222}"
|
||
|
|
stream_name = "${VAPORA_NATS_STREAM:-vapora-tasks}"
|
||
|
|
|
||
|
|
[auth]
|
||
|
|
# Authentication configuration
|
||
|
|
# VAPORA_JWT_SECRET (required in production)
|
||
|
|
jwt_secret = "${VAPORA_JWT_SECRET}"
|
||
|
|
jwt_expiration_hours = ${VAPORA_JWT_EXPIRATION_HOURS:-24}
|
||
|
|
|
||
|
|
[logging]
|
||
|
|
# Logging configuration
|
||
|
|
# VAPORA_LOG_LEVEL (default: info)
|
||
|
|
level = "${VAPORA_LOG_LEVEL:-info}"
|
||
|
|
json = ${VAPORA_LOG_JSON:-false}
|
||
|
|
|
||
|
|
[metrics]
|
||
|
|
# Metrics configuration
|
||
|
|
enabled = ${VAPORA_METRICS_ENABLED:-true}
|
||
|
|
port = ${VAPORA_METRICS_PORT:-9090}
|