mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-08-19 05:58:57 +00:00
allowing file-upload api to work with write permission (#4221)
This commit is contained in:
parent
d4b822646e
commit
c4b98fcccc
@ -12,7 +12,7 @@ RUN addgroup --gid 1001 $SERVICE_NAME && \
|
|||||||
|
|
||||||
|
|
||||||
# Create a folder for the /file-upload API endpoint with write permissions for the service user only
|
# Create a folder for the /file-upload API endpoint with write permissions for the service user only
|
||||||
RUN mkdir -p /opt/file-upload && chown $SERVICE_NAME:$SERVICE_NAME /opt/file-upload && chmod 600 /opt/file-upload
|
RUN mkdir -p /opt/file-upload && chown $SERVICE_NAME:$SERVICE_NAME /opt/file-upload && chmod 700 /opt/file-upload
|
||||||
|
|
||||||
# Tell rest_api which folder to use for uploads
|
# Tell rest_api which folder to use for uploads
|
||||||
ENV FILE_UPLOAD_PATH="/opt/file-upload"
|
ENV FILE_UPLOAD_PATH="/opt/file-upload"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user