forked from ci4s/label-studio
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
client_body_buffer_size 128k;
|
|
proxy_connect_timeout 90;
|
|
proxy_send_timeout 90;
|
|
proxy_read_timeout 300;
|
|
proxy_buffers 32 4k;
|
|
|
|
location / {
|
|
proxy_pass http://app:8080;
|
|
proxy_set_header Host $http_host;
|
|
}
|
|
|
|
location /label-studio/data/upload {
|
|
alias /label-studio/data/media/upload/;
|
|
}
|
|
|
|
location /label-studio/data/avatars {
|
|
alias /label-studio/data/media/avatars;
|
|
}
|
|
|
|
location /label-studio/static {
|
|
alias /label-studio/label_studio/core/static_build/;
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
}
|
|
|
|
location /label-studio/label-studio-frontend {
|
|
alias /label-studio/label_studio/frontend/dist/lsf;
|
|
}
|
|
|
|
location /label-studio/react-app {
|
|
alias /label-studio/label_studio/frontend/dist/react-app;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
}
|