mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 14:56:36 +00:00
chore(env): update .env.example with PostgreSQL host/port and Docker remote access configuration
This commit is contained in:
parent
3ecbb99dff
commit
ca815d5b80
22
.env.example
22
.env.example
@ -2,10 +2,12 @@
|
|||||||
POSTGRES_USER="your_postgres_user"
|
POSTGRES_USER="your_postgres_user"
|
||||||
POSTGRES_PASSWORD="your_postgres_password"
|
POSTGRES_PASSWORD="your_postgres_password"
|
||||||
POSTGRES_DB="your_postgres_db"
|
POSTGRES_DB="your_postgres_db"
|
||||||
|
# POSTGRES_HOST and DATABASE_URL are used for local development.
|
||||||
# The connection string for the PostgreSQL database
|
# Note: In compose.yml, POSTGRES_HOST is hardcoded as "postgres" and POSTGRES_PORT as "5432".
|
||||||
# Format: postgresql://username:password@hostname:port/database_name?schema=public
|
# If you need to change them, update the corresponding values in the environment section of compose.yml.
|
||||||
DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?schema=public"
|
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)
|
# Secret key for authentication (generate a secure value)
|
||||||
AUTH_SECRET="your_auth_secret"
|
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 and base URL for AI services
|
||||||
OPENAI_API_KEY="your_openai_api_key"
|
OPENAI_API_KEY="your_openai_api_key"
|
||||||
OPENAI_BASE_URL="your_openai_base_url_if_custom"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user