Files
0451meishi/backend/.env.example
2026-01-15 11:37:22 +08:00

41 lines
834 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# App
APP_ENV=dev
APP_PORT=8080
PUBLIC_BASE_URL=http://localhost:8080
# Admin init (首次启动会创建)
ADMIN_INIT_USERNAME=admin
ADMIN_INIT_PASSWORD=admin123456
# Auth
JWT_SECRET=please_change_me
# API Key管理后台每次请求都需要携带 X-API-Key
# 生产环境建议用 API_KEY_HASHSHA256 hex不要直接放明文 API_KEY
API_KEY=dev-api-key-change-me
# API_KEY_HASH=
# Database也可在 docker-compose 里覆盖)
DB_HOST=127.0.0.1
DB_PORT=3309
DB_NAME=mydb
DB_USER=user
DB_PASSWORD=password123
DB_PARAMS=charset=utf8mb4&parseTime=True&loc=Local
# Redis
REDIS_ADDR=127.0.0.1:6381
REDIS_PASSWORD=
REDIS_DB=0
# Upload
UPLOAD_DIR=./static/upload
MAX_UPLOAD_MB=10
# CORS管理后台域名
CORS_ALLOW_ORIGINS=http://localhost:5173
# AMap地址解析/选点,当前为预留)
AMAP_KEY=