From 1907b7924a4156dcba13aa9debec63a229707582 Mon Sep 17 00:00:00 2001 From: Andrey Zhavoronkov Date: Mon, 24 Aug 2020 13:46:10 +0300 Subject: [PATCH] Added django-rq to the proxy match pattern. (#2069) * added django-rq to the match pattern. Remoed unused locations from the config. * updated changelog * updated installation guide --- CHANGELOG.md | 1 + cvat/apps/documentation/installation.md | 15 +-------------- cvat_proxy/conf.d/cvat.conf.template | 15 +-------------- 3 files changed, 3 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d8ea49e..47964aca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Issue loading openvino models for semi-automatic and automatic annotation () - Basic functions of CVAT works without activated nuclio dashboard - Fixed error with creating task with labels with the same name () +- Django RQ dashboard view () ### Security - diff --git a/cvat/apps/documentation/installation.md b/cvat/apps/documentation/installation.md index 1741a16b..dc37a025 100644 --- a/cvat/apps/documentation/installation.md +++ b/cvat/apps/documentation/installation.md @@ -569,26 +569,13 @@ server { proxy_set_header Host $http_host; proxy_pass_header Set-Cookie; - location ~* /api/.*|git/.*|analytics/.*|static/.*|admin|admin/.*|documentation/.* { + location ~* /api/.*|git/.*|analytics/.*|static/.*|admin(?:/(.*))?.*|documentation/.*|django-rq(?:/(.*))? { proxy_pass http://cvat:8080; } - # workaround for match location by arguments - location = / { - error_page 418 = @annotation_ui; - - if ( $query_string ~ "^id=\d+.*" ) { return 418; } - proxy_pass http://cvat_ui; - } - location / { proxy_pass http://cvat_ui; } - - # old annotation ui, will be removed in the future. - location @annotation_ui { - proxy_pass http://cvat:8080; - } } ``` diff --git a/cvat_proxy/conf.d/cvat.conf.template b/cvat_proxy/conf.d/cvat.conf.template index 287f7284..bd46d38a 100644 --- a/cvat_proxy/conf.d/cvat.conf.template +++ b/cvat_proxy/conf.d/cvat.conf.template @@ -12,24 +12,11 @@ server { proxy_set_header Host $http_host; proxy_pass_header Set-Cookie; - location ~* /api/.*|git/.*|analytics/.*|static/.*|admin|admin/.*|documentation/.* { + location ~* /api/.*|git/.*|analytics/.*|static/.*|admin(?:/(.*))?.*|documentation/.*|django-rq(?:/(.*))? { proxy_pass http://cvat:8080; } - # workaround for match location by arguments - location = / { - error_page 418 = @annotation_ui; - - if ( $query_string ~ "^id=\d+.*" ) { return 418; } - proxy_pass http://cvat_ui; - } - location / { proxy_pass http://cvat_ui; } - - # old annotation ui, will be removed in the future. - location @annotation_ui { - proxy_pass http://cvat:8080; - } }