ChengYuXuan 5 лет назад
Родитель
Сommit
99f341552c
2 измененных файлов с 1 добавлено и 12 удалено
  1. 1 1
      Dockerfile
  2. 0 11
      nginx.conf

+ 1 - 1
Dockerfile

@@ -8,5 +8,5 @@ ADD . /code
 RUN yarn build
 
 FROM nginx:1.19-alpine
-COPY nginx.conf /etc/nginx/conf.d/seec-eval-ui.conf
+#COPY nginx.conf /etc/nginx/conf.d/seec-eval-ui.conf
 COPY --from=builder /code/dist/ /var/www/html/dist/

+ 0 - 11
nginx.conf

@@ -1,11 +0,0 @@
-server {
-  listen 80 default_server;
-  listen [::]:80 default_server;
-  root /var/www/html/dist;
-  location ~ / {
-    if ($request_uri ~* (api)) {
-        proxy_pass http://http://47.111.95.164:8080;
-    }
-    try_files $uri $uri/ /index.html;
-  }
-}