dev: update configuration

This commit is contained in:
pablohashescobar 2023-09-22 13:16:58 +05:30
parent dd760b4f38
commit 5a7b19ae78
2 changed files with 8 additions and 3 deletions

View File

@ -133,7 +133,8 @@ services:
- ${NGINX_PORT}:80 - ${NGINX_PORT}:80
environment: environment:
FILE_SIZE_LIMIT: ${FILE_SIZE_LIMIT:-5242880} FILE_SIZE_LIMIT: ${FILE_SIZE_LIMIT:-5242880}
BUCKET_NAME: ${AWS_S3_BUCKET_NAME:-uploads} PUBLIC_BUCKET_NAME: ${AWS_PUBLIC_STORAGE_BUCKET_NAME:-uploads}
PRIVATE_BUCKET_NAME: ${AWS_PRIVATE_STORAGE_BUCKET_NAME:-uploads-private}
depends_on: depends_on:
- plane-web - plane-web
- plane-api - plane-api

View File

@ -22,8 +22,12 @@ http {
proxy_pass http://planedeploy:3000/spaces/; proxy_pass http://planedeploy:3000/spaces/;
} }
location /${BUCKET_NAME}/ { location /${PUBLIC_BUCKET_NAME}/ {
proxy_pass http://plane-minio:9000/uploads/; proxy_pass http://plane-minio:9000/${PUBLIC_BUCKET_NAME}/;
}
location /${PRIVATE_BUCKET_NAME}/ {
proxy_pass http://plane-minio:9000/${PRIVATE_BUCKET_NAME}/;
} }
} }
} }