diff --git a/.github/workflows/deploy_test_web.yaml b/.github/workflows/deploy_test_web.yaml index f4cc82fa80..06fbf4965d 100644 --- a/.github/workflows/deploy_test_web.yaml +++ b/.github/workflows/deploy_test_web.yaml @@ -71,4 +71,4 @@ jobs: cd appflowy-web-app docker build -t appflowy-web-app . docker rm -f appflowy-web-app || true - docker run -d -p 3000:3000 --env-file .env --name appflowy-web-app appflowy-web-app + docker run -d -p 3000:80 --env-file .env --name appflowy-web-app appflowy-web-app diff --git a/frontend/appflowy_web_app/Dockerfile b/frontend/appflowy_web_app/Dockerfile index 15938738ad..7c12ec0203 100644 --- a/frontend/appflowy_web_app/Dockerfile +++ b/frontend/appflowy_web_app/Dockerfile @@ -26,6 +26,6 @@ COPY start.sh /app/start.sh RUN chmod +x /app/start.sh -EXPOSE 3000 +EXPOSE 80 CMD ["/app/start.sh"] diff --git a/frontend/appflowy_web_app/nginx.conf b/frontend/appflowy_web_app/nginx.conf index bb4fa10fef..c955b7519e 100644 --- a/frontend/appflowy_web_app/nginx.conf +++ b/frontend/appflowy_web_app/nginx.conf @@ -38,7 +38,7 @@ http { # Existing server block for HTTP server { - listen 3000; + listen 80; server_name localhost; location / { diff --git a/frontend/appflowy_web_app/server.cjs b/frontend/appflowy_web_app/server.cjs index 9d0457c4ba..dfce8db01c 100644 --- a/frontend/appflowy_web_app/server.cjs +++ b/frontend/appflowy_web_app/server.cjs @@ -61,6 +61,7 @@ const createServer = async (req) => { const timer = logRequestTimer(req); const reqUrl = new URL(req.url); logger.info(`Request URL: ${reqUrl.pathname}`); + const [ namespace, publishName,