Files

48 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.
# ==================================
# 开发环境配置文件
# ==================================
ENVIRONMENT = "prod"
# 服务器配置
SERVER_HOST = '0.0.0.0' # 允许访问的IP地址
SERVER_PORT = 8001 # 服务端口
# 文档配置
DEBUG = TRUE # 调试模式
TITLE = "🎉 FastapiAdmin 🎉 -prod" # 文档标题
VERSION = '0.1.0' # 版本号
SUMMARY = "接口汇总" # 文档概述
DOCS_URL = "/docs" # Swagger UI路径
REDOC_URL = "/redoc" # ReDoc路径
ROOT_PATH = "/api/v1" # API路由前缀
DESCRIPTION = "该项目是一个基于python的web服务框架基于fastapi和sqlalchemy实现。" # 文档描述
# 是否启用演示模式
DEMO_ENABLE = TRUE
# 数据库配置
DATABASE_TYPE = "mysql" # mysql、postgres、[qlite、dm这俩种不支持代码生成]
# 数据库配置
DATABASE_HOST = "1Panel-mysql-t6nr"
DATABASE_PORT = 3306 # MySQL默认端口3006 PostgreSQL默认端口5432
DATABASE_USER = "yifan-name" # PostgreSQL 用户是 postgres
DATABASE_PASSWORD = "ErDe3aDbHaGTGnTj"
DATABASE_NAME = "yifan-name"
# Redis配置
REDIS_ENABLE = True
REDIS_HOST = "1Panel-redis-PGHQ"
REDIS_PORT = 6379
REDIS_USER = ''
REDIS_PASSWORD = 'redis_2Ph6kM'
REDIS_DB_NAME = 1
# 日志配置
LOGGER_LEVEL = 'INFO'
# 大模型配置
OPENAI_BASE_URL = https://dashscope.aliyuncs.com/compatible-mode/v1
OPENAI_API_KEY = sk-e688534f2d984e7fa2eb46add409422f
OPENAI_MODEL = qwen-plus