forked from MarseyWorld/MarseyWorld
move /chat_images to /images
parent
49805fbca5
commit
01d252cc75
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue