-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added nginx proxy * removed unnecessary port configuration & build arg * updated installation guide
- Loading branch information
Showing
7 changed files
with
79 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
server { | ||
listen 80; | ||
server_name _ default; | ||
return 404; | ||
} | ||
|
||
server { | ||
listen 80; | ||
server_name ${CVAT_HOST}; | ||
|
||
location ~* /api/.*|git/.*|tensorflow/.*|auto_annotation/.*|analytics/.*|static/.*|admin|admin/.*|documentation/.*|dextr/.*|reid/.* { | ||
proxy_pass http://cvat:8080; | ||
proxy_pass_header X-CSRFToken; | ||
proxy_set_header Host $http_host; | ||
proxy_pass_header Set-Cookie; | ||
} | ||
|
||
location / { | ||
# workaround for match location by arguments | ||
error_page 418 = @annotation_ui; | ||
|
||
if ( $query_string ~ "^id=\d+.*" ) { return 418; } | ||
|
||
proxy_pass http://cvat_ui; | ||
proxy_pass_header X-CSRFToken; | ||
proxy_set_header Host $http_host; | ||
proxy_pass_header Set-Cookie; | ||
} | ||
|
||
# old annotation ui, will be removed in the future. | ||
location @annotation_ui { | ||
proxy_pass http://cvat:8080; | ||
proxy_pass_header X-CSRFToken; | ||
proxy_set_header Host $http_host; | ||
proxy_pass_header Set-Cookie; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
worker_processes 2; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include mime.types; | ||
default_type application/octet-stream; | ||
sendfile on; | ||
keepalive_timeout 65; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
client_max_body_size 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters