GitDeployHub

anush008/weknora

github.com/anush008/weknora ↗
Go
20 environment variables found in .env.example

Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.

  • GIN_MODE gin mod 可选值: debug(开发模式,有详细日志), release(生产模式)
  • OLLAMA_BASE_URL Ollama 服务的基准 URL,用于连接本地/其他服务器上运行的 Ollama 服务
  • DB_DRIVER 存储配置 主数据库类型(postgres/mysql)
  • RETRIEVE_DRIVER 向量存储类型(postgres/elasticsearch_v7/elasticsearch_v8/qdrant)
  • STORAGE_TYPE 文件存储类型(local/minio/cos)
  • STREAM_MANAGER_TYPE 流处理后端(memory/redis)
  • APP_PORT 应用服务端口,默认为8080
  • FRONTEND_PORT 前端服务端口,默认为80
  • DOCREADER_PORT 文档解析模块端口,默认为50051
  • DB_USER 数据库用户名
  • DB_PASSWORD secret 数据库密码
  • DB_NAME 数据库名称
  • REDIS_PASSWORD secret 如果使用 redis 作为流处理后端,需要配置以下参数 Redis密码,如果没有设置密码,可以留空
  • REDIS_DB Redis数据库索引,默认为0
  • REDIS_PREFIX Redis key的前缀,用于命名空间隔离
  • LOCAL_STORAGE_BASE_DIR 当使用本地存储时,文件保存的基础目录路径
  • TENANT_AES_KEY secret
  • ENABLE_GRAPH_RAG 是否开启知识图谱构建和检索(构建阶段需调用大模型,耗时较长)
  • CONCURRENCY_POOL_SIZE Embedding并发数,出现429错误时,可调小此参数
  • COS_ENABLE_OLD_DOMAIN
Best match Fly.io Anything Dockerized — requires the Fly CLI.
macOS
brew install flyctl && fly launch --from https://github.com/anush008/weknora
Linux
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/anush008/weknora
Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/anush008/weknora
Or deploy to a different host
← Try another repo