feat: 更新接口
This commit is contained in:
31
.env.example
Normal file
31
.env.example
Normal file
@@ -0,0 +1,31 @@
|
||||
# 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=
|
||||
Reference in New Issue
Block a user