Skip to main content

Environment Variable Configuration

This document describes the environment variable configuration options for the WeDa Low-Code Platform, including application configuration, database configuration, and object storage configuration.

1. Application Basic Configuration

# Application version
APP_VERSION="v0.1-alpha.12.8"

# Service access protocol (http|https) [Required]
DOMAIN_PROTOCOL="http"

# Service access domain or IP address [Required]
# Supports IP access, default supports ports 80, 443
DOMAIN="x.x.x.x"

2. MySQL Database Configuration

The following configuration items are optional. If not configured, a locally created MySQL instance will be used:

# MySQL server address (requires MySQL 8.x or above)
MYSQL_HOST="mysql"

# MySQL service port
MYSQL_PORT=3306

# MySQL username
MYSQL_USER="root"

# MySQL user password
MYSQL_PASSWORD="xxx"

# Default database name
MYSQL_DBNAME="lowcode"

# Data model database name
MYSQL_RUNTIME_DBNAME="lcruntime"

3. Object Storage (S3) Configuration

The following configuration items are optional. If not configured, a locally created MinIO instance will be used:

3.1 Basic Connection Configuration

# Storage service access address
S3_ENDPOINT="minio"

# Storage service access port
S3_PORT="9000"

# Storage service access protocol
S3_SCHEME="http"

# Storage access credentials
S3_ACCESS_KEY="xxx"
S3_SECRET_KEY="xxx"

3.2 Advanced Configuration

# Whether to skip certificate verification for HTTPS protocol
S3_INSECURE_SKIP_VERIFY=false

# Whether to automatically initialize object storage buckets
S3_INIT_BUCKET="true"

3.3 Storage Bucket Configuration

# Default object storage bucket name
S3_DEFAULT_BUCKET="lowcode"

# Cloud storage bucket name
S3_CLOUD_STORAGE_BUCKET="lowcode-storage"

# Application build storage bucket name
S3_CI_SOURCE_BUCKET="lowcode-ci-source"

4. Configuration Instructions

Important Notes
  • View Credential Information: The specific values for MYSQL_PASSWORD, S3_ACCESS_KEY, S3_SECRET_KEY can be found in the .env file in the deployment directory
  • Modify Configuration: The environment variables here are for reference only. To modify related configurations, please edit the config.yaml file and restart platform services
  • Configuration Examples: For related configuration examples, please refer to Port and IP Whitelist Configuration