Skip to content

Commit

Permalink
Merge pull request #30 from sileht/rewrite-fix
Browse files Browse the repository at this point in the history
fix: remove useless rewrite api/dozzle rewriting rule
  • Loading branch information
sileht authored Sep 18, 2020
2 parents 7367e74 + a934695 commit a0e4050
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 0 additions & 2 deletions code/cpu/config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ http {

location ~ /api/deepdetect/(?<url>.*) {
proxy_pass $deepdetect/$url$is_args$args;
rewrite ^/api/(.*) /$1 break;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions code/gpu/config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ http {

location ~ /api/deepdetect/(?<url>.*) {
proxy_pass $deepdetect/$url$is_args$args;
rewrite ^/api/(.*) /$1 break;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a0e4050

Please sign in to comment.