34 lines
1.7 KiB
Plaintext
34 lines
1.7 KiB
Plaintext
# Environment Configuration for Reverse Proxy Architecture
|
|
# Copy this file to .env, .env.development, or .env.production and fill in your values
|
|
|
|
# Instance Configuration
|
|
INSTANCE_NAME=myapp-3000 # Unique identifier for the service instance (alphanumeric, hyphens, underscores only)
|
|
# The container and volume name will be {INSTANCE_NAME}-frpc
|
|
|
|
# Internal Service Container Configuration
|
|
INTERNAL_SERVICE_PORT=3000 # Port exposed by the target Docker container (e.g., 3000)
|
|
DOCKER_NETWORK=app-network # Docker network for connecting to internal service container
|
|
|
|
# FRP Server Configuration
|
|
# Public IP address of the FRP server
|
|
FRP_SERVER_ADDR=192.168.1.100
|
|
FRP_SERVER_USER=myuser
|
|
FRP_SERVER_PORT=16999 # Port for FRP communication (default 16999)
|
|
|
|
# Domain Configuration
|
|
# Public domain for Traefik routing
|
|
DOMAIN_NAME=myapp.example.com
|
|
|
|
# Service -- docker container name
|
|
SERVICE_DOCKER_CONTAINER_NAME=your-app-docker-container
|
|
|
|
# Remote ports Configuration for 1) external access, or 2) traefik connecting (convert to publish at port 80/443 usually)
|
|
PROXY_WEB_PORT=11077 # Remote port for web proxy
|
|
|
|
# Dynamic Proxy Configuration - Use PROXY_*_PORT format for additional proxies
|
|
# Examples:
|
|
# PROXY_API_PORT=8080 # Creates an 'api' proxy to port 8080
|
|
# PROXY_API_LOCAL_PORT=8000 # Optional local port for the API proxy (defaults to service port)
|
|
# PROXY_DATABASE_PORT=5432 # Creates a 'database' proxy to port 5432
|
|
# PROXY_DATABASE_LOCAL_PORT=5433 # Optional local port for database proxy
|
|
# PROXY_CUSTOM_PORT=9000 # Creates a 'custom' proxy to port 9000 |