From a934695206ab0f020d62a7dcea582a36d66c19da Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Fri, 18 Sep 2020 08:46:18 +0200 Subject: [PATCH] fix: remove useless rewrite api/dozzle rewriting rule Closes #29 --- ci/run.sh | 2 ++ code/cpu/config/nginx/nginx.conf | 2 -- code/gpu/config/nginx/nginx.conf | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/run.sh b/ci/run.sh index 5910526..7b274eb 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -22,4 +22,6 @@ PORT=$(docker port "${PROJECT}_platform_ui_1" 80/tcp | awk -F: '{print $2}') timeout 22 sh -c "until nc -z localhost $PORT; do sleep 1; done" curl -s --head --request GET localhost:$PORT | head -1 | grep 'HTTP/1.1 200' +curl -s --head --request GET http://localhost:$PORT/api/deepdetect/info | head -1 | grep 'HTTP/1.1 200' curl -s --head --request GET http://localhost:$PORT/filebrowser/sw.js | head -1 | grep 'HTTP/1.1 200' +curl -s --head --request GET http://localhost:$PORT/docker-logs/ | head -1 | grep 'HTTP/1.1 200' diff --git a/code/cpu/config/nginx/nginx.conf b/code/cpu/config/nginx/nginx.conf index a58ad63..c46b2ef 100644 --- a/code/cpu/config/nginx/nginx.conf +++ b/code/cpu/config/nginx/nginx.conf @@ -127,7 +127,6 @@ http { location ~ /api/deepdetect/(?.*) { proxy_pass $deepdetect/$url$is_args$args; - rewrite ^/api/(.*) /$1 break; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; @@ -177,7 +176,6 @@ http { location /docker-logs { proxy_pass $dozzle; - rewrite ^/docker-logs/(.*) /$1 break; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; diff --git a/code/gpu/config/nginx/nginx.conf b/code/gpu/config/nginx/nginx.conf index 703d97e..0d118be 100644 --- a/code/gpu/config/nginx/nginx.conf +++ b/code/gpu/config/nginx/nginx.conf @@ -132,7 +132,6 @@ http { location ~ /api/deepdetect/(?.*) { proxy_pass $deepdetect/$url$is_args$args; - rewrite ^/api/(.*) /$1 break; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; @@ -196,7 +195,6 @@ http { location /docker-logs { proxy_pass $dozzle; - rewrite ^/docker-logs/(.*) /$1 break; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host;