For AI agents: the complete documentation index is available at https://docs.fit2cloud.com/ai-gateway/llms.txt, the full documentation bundle is available at https://docs.fit2cloud.com/ai-gateway/llms-full.txt, and this page is available as Markdown at https://docs.fit2cloud.com/ai-gateway/installation/deployment_instructions.md.

部署说明

系统支持以下数据库与部署组合:

  • SQLite 单机:单个网关实例,适合快速部署和中小规模使用。
  • PostgreSQL 单机:单个网关实例共享 PostgreSQL 数据库。
  • PostgreSQL 高可用:多个网关实例共享 PostgreSQL,并由外部负载均衡和高可用 Redis 等基础设施提供高可用支撑。

部署边界:软件通过官方容器镜像交付,并提供部署参考;不负责安装和运维外部负载均衡、PostgreSQL、Redis 或可选的 Elasticsearch 集群。

自 v1.5.0 起,以独立方式(在线 / 离线安装)部署网关时,支持从已安装的 1Panel 网关应用导入数据,便于将原先通过 1Panel 应用商店部署的网关迁移到独立部署形态。

默认运行参数如下:

表 1 1Panel AI 网关默认运行参数
项目默认值说明
监听地址0.0.0.0监听全部 IPv4 接口。
HTTP 端口8080Web 管理界面和数据面 API 共用。
数据库SQLite默认数据库文件位于 /opt/ai-gateway/data/db/ai-gateway.db。
凭据密钥自动管理SQLite 首次启动时生成 /opt/ai-gateway/data/security/credential.key。
优雅退出60 秒接收终止信号后等待请求退出。