2024-01-09 10:31:52 +08:00
|
|
|
#!/bin/bash
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2024-04-26 17:19:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
# if you are using windows, you may need to convert the file to unix format
|
|
|
|
# you can use the Ubuntu terminal to convert this file to unix format
|
|
|
|
# otherwise, you may get the error after running the docker container
|
|
|
|
|
|
|
|
# sudo apt-get install dos2unix
|
|
|
|
# dos2unix entrypoint.sh
|
|
|
|
|
|
|
|
|
2023-05-15 08:51:32 +08:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export NEXT_PUBLIC_DEPLOY_ENV=${DEPLOY_ENV}
|
|
|
|
export NEXT_PUBLIC_EDITION=${EDITION}
|
2024-01-18 14:44:37 +08:00
|
|
|
export NEXT_PUBLIC_API_PREFIX=${CONSOLE_API_URL}/console/api
|
|
|
|
export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_API_URL}/api
|
2025-02-17 17:05:13 +08:00
|
|
|
export NEXT_PUBLIC_MARKETPLACE_API_PREFIX=${MARKETPLACE_API_URL}/api/v1
|
|
|
|
export NEXT_PUBLIC_MARKETPLACE_URL_PREFIX=${MARKETPLACE_URL}
|
2023-07-14 11:19:26 +08:00
|
|
|
|
2023-06-13 16:04:54 +08:00
|
|
|
export NEXT_PUBLIC_SENTRY_DSN=${SENTRY_DSN}
|
2023-10-16 15:26:25 +08:00
|
|
|
export NEXT_PUBLIC_SITE_ABOUT=${SITE_ABOUT}
|
2024-08-12 18:15:41 +07:00
|
|
|
export NEXT_TELEMETRY_DISABLED=${NEXT_TELEMETRY_DISABLED}
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2024-09-14 15:11:45 +09:00
|
|
|
export NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS=${TEXT_GENERATION_TIMEOUT_MS}
|
2024-10-11 16:14:56 +08:00
|
|
|
export NEXT_PUBLIC_CSP_WHITELIST=${CSP_WHITELIST}
|
2025-04-22 16:48:45 +08:00
|
|
|
export NEXT_PUBLIC_ALLOW_EMBED=${ALLOW_EMBED}
|
2025-01-06 10:38:14 +08:00
|
|
|
export NEXT_PUBLIC_TOP_K_MAX_VALUE=${TOP_K_MAX_VALUE}
|
2025-01-22 10:43:40 +08:00
|
|
|
export NEXT_PUBLIC_INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH}
|
2025-03-20 09:38:46 +08:00
|
|
|
export NEXT_PUBLIC_MAX_TOOLS_NUM=${MAX_TOOLS_NUM}
|
2025-04-16 15:50:15 +08:00
|
|
|
export NEXT_PUBLIC_ENABLE_WEBSITE_JINAREADER=${ENABLE_WEBSITE_JINAREADER:-true}
|
|
|
|
export NEXT_PUBLIC_ENABLE_WEBSITE_FIRECRAWL=${ENABLE_WEBSITE_FIRECRAWL:-true}
|
|
|
|
export NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL=${ENABLE_WEBSITE_WATERCRAWL:-true}
|
2025-04-29 09:57:58 +09:00
|
|
|
export NEXT_PUBLIC_LOOP_NODE_MAX_COUNT=${LOOP_NODE_MAX_COUNT}
|
|
|
|
export NEXT_PUBLIC_MAX_PARALLEL_LIMIT=${MAX_PARALLEL_LIMIT}
|
|
|
|
export NEXT_PUBLIC_MAX_ITERATIONS_NUM=${MAX_ITERATIONS_NUM}
|
2025-06-23 13:55:57 +08:00
|
|
|
export NEXT_PUBLIC_MAX_TREE_DEPTH=${MAX_TREE_DEPTH}
|
2025-02-20 17:30:19 +08:00
|
|
|
pm2 start /app/web/server.js --name dify-web --cwd /app/web -i ${PM2_INSTANCES} --no-daemon
|