Tweaks to SSE
parent
3138e96ae0
commit
2546b1c559
|
@ -7,18 +7,24 @@ server {
|
|||
ssl_certificate /etc/letsencrypt/live/demucs.stems.zip/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/demucs.stems.zip/privkey.pem;
|
||||
|
||||
location / {
|
||||
location / {
|
||||
proxy_pass http://127.0.0.2:8000/;
|
||||
}
|
||||
|
||||
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_buffering off;
|
||||
proxy_pass http://127.0.0.2:8000/sse;
|
||||
}
|
||||
|
||||
location ^~ /uploads/ {
|
||||
gzip on;
|
||||
alias /path/to/demucs-server/src/uploads/;
|
||||
}
|
||||
|
||||
location = /sse {
|
||||
proxy_read_timeout 300;
|
||||
proxy_send_timeout 300;
|
||||
proxy_pass http://127.0.0.2:8000/;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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