From ca815d5b80bdcab797c85ee5be618e3777815170 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Tue, 8 Apr 2025 14:04:06 +0800 Subject: [PATCH] chore(env): update .env.example with PostgreSQL host/port and Docker remote access configuration --- .env.example | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index ea30204..8878a33 100644 --- a/.env.example +++ b/.env.example @@ -2,10 +2,12 @@ POSTGRES_USER="your_postgres_user" POSTGRES_PASSWORD="your_postgres_password" POSTGRES_DB="your_postgres_db" - -# The connection string for the PostgreSQL database -# Format: postgresql://username:password@hostname:port/database_name?schema=public -DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?schema=public" +# POSTGRES_HOST and DATABASE_URL are used for local development. +# Note: In compose.yml, POSTGRES_HOST is hardcoded as "postgres" and POSTGRES_PORT as "5432". +# If you need to change them, update the corresponding values in the environment section of compose.yml. +POSTGRES_HOST="your_postgres_host" +POSTGRES_PORT="your_postgres_port" +DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?schema=public" # Secret key for authentication (generate a secure value) AUTH_SECRET="your_auth_secret" @@ -20,3 +22,15 @@ AUTH_URL="http://localhost:3000" # OpenAI API key and base URL for AI services OPENAI_API_KEY="your_openai_api_key" OPENAI_BASE_URL="your_openai_base_url_if_custom" + +# Docker Remote Access Configuration +DOCKER_HOST_MODE="remote_or_blank" +DOCKER_REMOTE_PROTOCOL="http_or_https_or_ssh" +DOCKER_REMOTE_HOST="your_docker_remote_host" +DOCKER_REMOTE_PORT="your_docker_remote_port" + +# Docker TLS/SSL Certificate Paths (only required when DOCKER_HOST_MODE is set to "remote" **with TLS** enabled) +DOCKER_REMOTE_CERTS_PATH="your_certs_path" +DOCKER_REMOTE_CA_PATH="your_ca_path" # Default: /certs/ca.pem +DOCKER_REMOTE_CERT_PATH="your_cert_path" # Default: /certs/cert.pem +DOCKER_REMOTE_KEY_PATH="your_remote_key_path" # Default: /certs/key.pem