Files
petwash/.env.example
2026-03-03 16:49:57 +08:00

32 lines
771 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.
# PetWash API 环境变量配置示例
# 复制此文件为 .env 并修改相应的值
# 应用环境
ASPNETCORE_ENVIRONMENT=Production
# MySQL 数据库配置
MYSQL_HOST=101.132.182.216
MYSQL_PORT=3306
MYSQL_DATABASE=petwash
MYSQL_USER=root
MYSQL_PASSWORD=
# 数据库连接字符串
# 注意: 如果密码为空Password= 后面不要有任何字符
CONNECTION_STRING=Server=${MYSQL_HOST};Database=${MYSQL_DATABASE};User=${MYSQL_USER};Password=${MYSQL_PASSWORD};Port=${MYSQL_PORT};CharSet=utf8mb4;
# API 端口配置
API_PORT=5000
# 日志级别
LOG_LEVEL=Information
# CORS 配置(可选)
# ALLOWED_ORIGINS=http://localhost:3000,http://example.com
# MQTT 配置(如果使用)
# MQTT_BROKER=localhost
# MQTT_PORT=1883
# MQTT_USERNAME=
# MQTT_PASSWORD=