diff --git a/Dockerfile b/Dockerfile index d751448..dfb0d40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,14 +22,14 @@ RUN npm run build FROM python:3.10-slim RUN mkdir /app -ENV INTERNAL_NEUROGLANCER_ADDRESS=0.0.0.0 +ENV INTERNAL_NEUROGLANCER_ADDRESS=localhost ENV INTERNAL_NEUROGLANCER_PORT=8050 ENV INTERNAL_SERVER_PORT=8085 -ENV DATABASE_URL=https://ntracer2.cai-lab.org/data2/ -ENV PRECOMPUTED_URL=precomputed://https://ntracer2.cai-lab.org/data2/ -ENV PRECOMPUTED_URL_DOCKER=precomputed://https://ntracer2.cai-lab.org/data2/ -ENV PRECOMPUTED_ANNOTATION_URL=precomputed://https://ntracer2.cai-lab.org/data2/ +ENV DATABASE_URL=https://sonic2.cai-lab.org/data2/ +ENV PRECOMPUTED_URL=precomputed://https://sonic2.cai-lab.org/data2/ +ENV PRECOMPUTED_URL_DOCKER=precomputed://https://sonic2.cai-lab.org/data2/ +ENV PRECOMPUTED_ANNOTATION_URL=precomputed://https://sonic2.cai-lab.org/data2/ ENV NEUROGLANCER_TOKEN=cailab1357 ENV NEUROGLANCER_PORT=8050 @@ -41,8 +41,6 @@ ENV PATH=/root/.local/bin:$PATH RUN apt-get update && apt-get install -y --no-install-recommends libx264-dev RUN apt-get install -y nginx -COPY nginx.conf /etc/nginx/sites-available/default - COPY backend /app #COPY --from=db-builder /app/a.out /app/db-server COPY --from=backend-builder /app/algorithm/astar/*.so ./app/algorithm/astar/ @@ -55,6 +53,5 @@ WORKDIR /app EXPOSE 8085 EXPOSE 8050 -EXPOSE 80 CMD ["python", "main.py"] diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 3f4d68c..0000000 --- a/nginx.conf +++ /dev/null @@ -1,13 +0,0 @@ -server { - listen 80; - server_name localhost; - - location / { - proxy_pass https://ntracer2.cai-lab.org/data2/; # The server to which requests are proxied - proxy_set_header Host $host; # Forward the original Host header - proxy_set_header X-Real-IP $remote_addr; # Forward the client’s IP address - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Forward the IP address chain - proxy_set_header X-Forwarded-Proto $scheme; # Forward the original protocol (HTTP/HTTPS) - add_header Access-Control-Allow-Origin *; - } -} \ No newline at end of file