您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

entrypoint.sh 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. # if you are using windows, you may need to convert the file to unix format
  3. # you can use the Ubuntu terminal to convert this file to unix format
  4. # otherwise, you may get the error after running the docker container
  5. # sudo apt-get install dos2unix
  6. # dos2unix entrypoint.sh
  7. set -e
  8. export NEXT_PUBLIC_DEPLOY_ENV=${DEPLOY_ENV}
  9. export NEXT_PUBLIC_EDITION=${EDITION}
  10. export NEXT_PUBLIC_API_PREFIX=${CONSOLE_API_URL}/console/api
  11. export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_API_URL}/api
  12. export NEXT_PUBLIC_MARKETPLACE_API_PREFIX=${MARKETPLACE_API_URL}/api/v1
  13. export NEXT_PUBLIC_MARKETPLACE_URL_PREFIX=${MARKETPLACE_URL}
  14. export NEXT_PUBLIC_SENTRY_DSN=${SENTRY_DSN}
  15. export NEXT_PUBLIC_SITE_ABOUT=${SITE_ABOUT}
  16. export NEXT_TELEMETRY_DISABLED=${NEXT_TELEMETRY_DISABLED}
  17. export NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS=${TEXT_GENERATION_TIMEOUT_MS}
  18. export NEXT_PUBLIC_CSP_WHITELIST=${CSP_WHITELIST}
  19. export NEXT_PUBLIC_ALLOW_EMBED=${ALLOW_EMBED}
  20. export NEXT_PUBLIC_TOP_K_MAX_VALUE=${TOP_K_MAX_VALUE}
  21. export NEXT_PUBLIC_INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH}
  22. export NEXT_PUBLIC_MAX_TOOLS_NUM=${MAX_TOOLS_NUM}
  23. export NEXT_PUBLIC_ENABLE_WEBSITE_JINAREADER=${ENABLE_WEBSITE_JINAREADER:-true}
  24. export NEXT_PUBLIC_ENABLE_WEBSITE_FIRECRAWL=${ENABLE_WEBSITE_FIRECRAWL:-true}
  25. export NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL=${ENABLE_WEBSITE_WATERCRAWL:-true}
  26. export NEXT_PUBLIC_LOOP_NODE_MAX_COUNT=${LOOP_NODE_MAX_COUNT}
  27. export NEXT_PUBLIC_MAX_PARALLEL_LIMIT=${MAX_PARALLEL_LIMIT}
  28. export NEXT_PUBLIC_MAX_ITERATIONS_NUM=${MAX_ITERATIONS_NUM}
  29. pm2 start /app/web/server.js --name dify-web --cwd /app/web -i ${PM2_INSTANCES} --no-daemon