Tweaks to SSE
parent
3138e96ae0
commit
2546b1c559
|
@ -11,14 +11,20 @@ server {
|
|||
proxy_pass http://127.0.0.2:8000/;
|
||||
}
|
||||
|
||||
location ^~ /uploads/ {
|
||||
gzip on;
|
||||
alias /path/to/demucs-server/src/uploads/;
|
||||
location = /demix {
|
||||
client_max_body_size 4G;
|
||||
proxy_pass http://127.0.0.2:8000/demix;
|
||||
}
|
||||
|
||||
location = /sse {
|
||||
proxy_read_timeout 300;
|
||||
proxy_send_timeout 300;
|
||||
proxy_pass http://127.0.0.2:8000/;
|
||||
proxy_buffering off;
|
||||
proxy_pass http://127.0.0.2:8000/sse;
|
||||
}
|
||||
|
||||
location ^~ /uploads/ {
|
||||
gzip on;
|
||||
alias /path/to/demucs-server/src/uploads/;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<p>status: <strong class="status">{{ status }}</strong></p>
|
||||
<p>originally: <strong>{{ orig_name }}</strong></p>
|
||||
|
||||
<section class="progress-section" {% if status !="in progress" %}style="display: none" {% endif %}>
|
||||
<section class="progress-section" {% if progress.get('stage') is None %}style="display: none" {% endif %}>
|
||||
<h3>progress</h3>
|
||||
<p>
|
||||
stage:
|
||||
|
|
Loading…
Reference in New Issue