diff --git a/Dockerfile b/Dockerfile index 29e3cd7dd..02df58d8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,6 @@ COPY scripts/startup_docker_chat.sh /s RUN pip3 install -r /requirements.txt RUN mkdir /images -RUN mkdir /chat_images RUN mkdir /songs RUN mkdir /temp_songs RUN mkdir /videos diff --git a/files/routes/chat.py b/files/routes/chat.py index c367499b7..6fabb5334 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -78,7 +78,7 @@ def speak(data, v): file = None if data['file']: if data['file_type'].startswith('image/'): - name = f'/chat_images/{time.time()}'.replace('.','') + '.webp' + name = f'/images/{time.time()}'.replace('.','') + '.webp' with open(name, 'wb') as f: f.write(data['file']) file = process_image(name, v) diff --git a/nginx.conf b/nginx.conf index 062b42ed5..8d3fd24c7 100644 --- a/nginx.conf +++ b/nginx.conf @@ -47,10 +47,6 @@ server { alias /images/; include includes/serve-static; } - location /chat_images/ { - alias /chat_images/; - include includes/serve-static; - } location /videos/ { alias /videos/; include includes/serve-static;