Bladeren bron

修改docker打包配置

Wangbo 3 weken geleden
bovenliggende
commit
07b81dc4f6
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 2 2
      .env.example
  2. 2 2
      Dockerfile

+ 2 - 2
.env.example

@@ -5,11 +5,11 @@ NEXT_PUBLIC_EDITION=SELF_HOSTED
 # The base URL of console application, refers to the Console base URL of WEB service if console domain is
 # different from api or web app domain.
 # example: http://cloud.dify.ai/console/api
-NEXT_PUBLIC_API_PREFIX=http://localhost:5001/console/api
+NEXT_PUBLIC_API_PREFIX=http://1.14.94.79:5001/console/api
 # The URL for Web APP, refers to the Web App base URL of WEB service if web app domain is different from
 # console or api domain.
 # example: http://udify.app/api
-NEXT_PUBLIC_PUBLIC_API_PREFIX=http://localhost:5001/api
+NEXT_PUBLIC_PUBLIC_API_PREFIX=http://1.14.94.79:5001/api
 
 # SENTRY
 NEXT_PUBLIC_SENTRY_DSN=

+ 2 - 2
Dockerfile

@@ -36,8 +36,8 @@ FROM base AS production
 ENV NODE_ENV=production
 ENV EDITION=SELF_HOSTED
 ENV DEPLOY_ENV=PRODUCTION
-ENV CONSOLE_API_URL=http://127.0.0.1:5001
-ENV APP_API_URL=http://127.0.0.1:5001
+ENV CONSOLE_API_URL=http://1.14.94.79:5001
+ENV APP_API_URL=http://1.14.94.79:5001
 ENV PORT=3000
 ENV NEXT_TELEMETRY_DISABLED=1