dashboard-nanobot/.env.prod.example

46 lines
1.5 KiB
Plaintext
Raw Normal View History

2026-03-01 16:26:03 +00:00
# Public exposed port (only nginx is exposed)
NGINX_PORT=8080
# REQUIRED absolute host paths.
# They must exist and be writable by docker daemon.
HOST_DATA_ROOT=/opt/dashboard-nanobot/data
HOST_BOTS_WORKSPACE_ROOT=/opt/dashboard-nanobot/workspace/bots
# Optional custom image tags
BACKEND_IMAGE_TAG=latest
FRONTEND_IMAGE_TAG=latest
# Optional build acceleration for China network
# If you mirror upstream container images, replace these with your mirror registry image names.
PYTHON_BASE_IMAGE=python:3.12-slim
2026-03-01 17:39:59 +00:00
NODE_BASE_IMAGE=node:22-alpine
2026-03-01 16:26:03 +00:00
NGINX_BASE_IMAGE=nginx:alpine
# Python package index mirror (recommended in CN)
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
2026-03-01 17:33:23 +00:00
# Frontend package registry mirror (used by yarn, recommended in CN)
2026-03-01 16:26:03 +00:00
NPM_REGISTRY=https://registry.npmmirror.com
2026-03-10 04:40:01 +00:00
# Database (choose one: SQLite / PostgreSQL / MySQL)
# SQLite example:
# DATABASE_URL=sqlite:///${HOST_DATA_ROOT}/nanobot_dashboard.db
# PostgreSQL example:
2026-03-01 16:26:03 +00:00
# DATABASE_URL=postgresql+psycopg://user:password@127.0.0.1:5432/nanobot_dashboard
2026-03-10 04:40:01 +00:00
# MySQL example:
# DATABASE_URL=mysql+pymysql://user:password@127.0.0.1:3306/nanobot_dashboard
2026-03-09 04:53:15 +00:00
DATABASE_URL=postgresql+psycopg://postgres:change_me@127.0.0.1:5432/nanobot_dashboard
2026-03-10 04:40:01 +00:00
# Redis cache (optional)
2026-03-09 04:53:15 +00:00
REDIS_ENABLED=true
REDIS_URL=redis://127.0.0.1:6379/8
REDIS_PREFIX=dashboard_nanobot
REDIS_DEFAULT_TTL=60
# Panel access protection
PANEL_ACCESS_PASSWORD=change_me_panel_password
2026-03-03 06:09:11 +00:00
# Max upload size for backend validation (MB)
2026-03-11 12:55:42 +00:00
UPLOAD_MAX_MB=200