ether-pms/.env.example

49 lines
1.5 KiB
Plaintext
Raw Permalink 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.

# ============================================
# Ether PMS 环境变量配置示例
# ============================================
# 复制此文件为 .env 并填入实际值:
# cp .env.example .env
#
# 重要: 不要将包含真实密钥的 .env 文件提交到版本控制!
# ============================================
# ------------------------------------------
# JWT 配置(必需)
# ------------------------------------------
# JWT 签名密钥(必须设置,长度 >= 32 字符)
# 生成命令: openssl rand -base64 64
# 示例: JWT_SECRET=YourVeryLongAndSecureRandomSecretKeyThatIsAtLeast32CharactersLong
JWT_SECRET=
# ------------------------------------------
# 数据库配置
# ------------------------------------------
# 数据库连接 URL
# SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/ether_pms
# 数据库用户名
# SPRING_DATASOURCE_USERNAME=your_db_user
# 数据库密码
# SPRING_DATASOURCE_PASSWORD=your_secure_password
# ------------------------------------------
# 应用配置(可选)
# ------------------------------------------
# 服务端口(默认: 8080
# SERVER_PORT=8080
# 日志级别(默认: DEBUG for com.ether
# LOGGING_LEVEL_COM_ETHER=DEBUG
# ------------------------------------------
# 安全提示
# ------------------------------------------
# 1. 生产环境必须使用强随机密钥
# 2. 定期轮换 JWT Secret建议每 90 天)
# 3. 使用密码管理器存储敏感配置
# 4. 确保 .env 文件权限为 600 (chmod 600 .env)