Files
Hulumath-Web/.env.production.example
T
Jacky 6c9f475ba5
CI / test (pull_request) Successful in 3m58s
PR合并自动部署 / release-check (pull_request) Successful in 13s
PR合并自动部署 / deploy (pull_request) Successful in 16s
release: prepare Hulumath v1.2.0
2026-08-10 01:23:30 +08:00

29 lines
980 B
Bash

# 复制为服务器项目根目录下的 .env.production,并替换全部示例值。
# 包含 #、空格等特殊字符的值请用单引号包裹。
DJANGO_SETTINGS_MODULE=config.settings
APP_VERSION=1.2.0
DJANGO_SECRET_KEY='replace-with-at-least-50-random-characters'
DJANGO_DEBUG=false
DJANGO_USE_HTTPS=true
DJANGO_ALLOWED_HOSTS=math.example.com
DATABASE_URL='mysql://hulumath:replace-password@127.0.0.1:3307/hulumath'
REDIS_URL='redis://127.0.0.1:6379/0'
CORS_ALLOWED_ORIGINS=https://math.example.com
CSRF_TRUSTED_ORIGINS=https://math.example.com
API_ANON_RATE=120/minute
API_USER_RATE=600/minute
CALCULATOR_RATE=30/minute
SECURE_HSTS_SECONDS=31536000
# 仅供部署脚本直接访问 127.0.0.1:8000 时设置 Host 头。
DEPLOY_HEALTH_HOST=math.example.com
# Docker MySQL 推荐直接使用容器内的 MySQL 8 客户端。
MYSQL_CONTAINER=mysql_o0fbdmmf8q
# 仅非 Docker MySQL 使用。客户端必须是 MySQL 8。
# MYSQLDUMP_BIN=/www/server/mysql/bin/mysqldump