Tweaks to SSE

main
Charlotte Som 2023-07-06 21:32:53 +00:00
parent 3138e96ae0
commit 2546b1c559
2 changed files with 14 additions and 8 deletions

View File

@ -11,14 +11,20 @@ server {
proxy_pass http://127.0.0.2:8000/; proxy_pass http://127.0.0.2:8000/;
} }
location ^~ /uploads/ { location = /demix {
gzip on; client_max_body_size 4G;
alias /path/to/demucs-server/src/uploads/; proxy_pass http://127.0.0.2:8000/demix;
} }
location = /sse { location = /sse {
proxy_read_timeout 300; proxy_read_timeout 300;
proxy_send_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/;
} }
} }

View File

@ -12,7 +12,7 @@
<p>status: <strong class="status">{{ status }}</strong></p> <p>status: <strong class="status">{{ status }}</strong></p>
<p>originally: <strong>{{ orig_name }}</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> <h3>progress</h3>
<p> <p>
stage: stage: