From 2546b1c55996e710786504f23176a7de14f4a5a1 Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Thu, 6 Jul 2023 21:32:53 +0000 Subject: [PATCH] Tweaks to SSE --- demucs-stems-zip.nginx.conf | 20 +++++++++++++------- src/demucs_server/templates/task.html.j2 | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/demucs-stems-zip.nginx.conf b/demucs-stems-zip.nginx.conf index df12d49..341744b 100644 --- a/demucs-stems-zip.nginx.conf +++ b/demucs-stems-zip.nginx.conf @@ -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/; - } } diff --git a/src/demucs_server/templates/task.html.j2 b/src/demucs_server/templates/task.html.j2 index 773ec7f..3e2a53a 100644 --- a/src/demucs_server/templates/task.html.j2 +++ b/src/demucs_server/templates/task.html.j2 @@ -12,7 +12,7 @@

status: {{ status }}

originally: {{ orig_name }}

-
+

progress

stage: