You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# ==================================
# 开发环境配置文件模版:复制此文件为 .env.dev 并修改配置
# ==================================
ENVIRONMENT = "dev"
# 服务器配置
SERVER_HOST = "localhost" # 允许访问的IP地址
SERVER_PORT = 8001 # 服务端口
# 文档配置
DEBUG = True # 调试模式
TITLE = "🎉 FastapiAdmin 🎉 -dev" # 文档标题
VERSION = "0.1.0" # 版本号
SUMMARY = "接口汇总" # 文档概述
DOCS_URL = "/docs" # Swagger UI路径
REDOC_URL = "/redoc" # ReDoc路径
ROOT_PATH = "/api/v1" # API路由前缀
DESCRIPTION = "该项目是一个基于python的web服务框架基于fastapi和sqlalchemy实现。" # 文档描述
ALLOW_ORIGINS = ["http://127.0.0.1:5180"]
OAUTH_FRONTEND_FALLBACK = "http://127.0.0.1:5180/login"
# 如果当前仍在 monorepo 里开发,先用旧路径
CODEGEN_BACKEND_PROJECT_PATH = "fastapiadmin-backend"
CODEGEN_FRONTEND_PROJECT_PATH = "fastapiadmin-web"
# 是否启用演示模式
DEMO_ENABLE = False
# 数据库配置
DATABASE_TYPE = "mysql" # mysql、postgres、sqlite、dm(sqlite、dm不支持代码生成)
# 数据库配置
DATABASE_HOST = "192.168.5.5"
DATABASE_PORT = 3306 # MySQL:3306 PostgreSQL:5432
DATABASE_USER = "root"
DATABASE_PASSWORD = "ngsk0809"
DATABASE_NAME = "fastapiadmin"
# Redis配置
REDIS_ENABLE = True
REDIS_HOST = "192.168.5.5"
REDIS_PORT = 6379
REDIS_USER = ""
REDIS_PASSWORD = "ngsk0809"
REDIS_DB_NAME = 1
# 日志配置
LOGGER_LEVEL = "DEBUG" # 日志级别
# 大模型配置
OPENAI_BASE_URL = "https://api.minimax.chat"
OPENAI_API_KEY = "your_api_key"
OPENAI_MODEL = "deepseek-v4-flash"
# IP 归属地查询(登录时对外请求第三方 API生产建议关闭
IP_LOCATION_ENABLE=False