diff --git a/docker-compose.yml b/docker-compose.yml index 105f2f452..28fb47fa1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -133,7 +133,8 @@ services: - ${NGINX_PORT}:80 environment: 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: - plane-web - plane-api diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index 36a68fa55..1ba73e2df 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -22,8 +22,12 @@ http { proxy_pass http://planedeploy:3000/spaces/; } - location /${BUCKET_NAME}/ { - proxy_pass http://plane-minio:9000/uploads/; + location /${PUBLIC_BUCKET_NAME}/ { + proxy_pass http://plane-minio:9000/${PUBLIC_BUCKET_NAME}/; + } + + location /${PRIVATE_BUCKET_NAME}/ { + proxy_pass http://plane-minio:9000/${PRIVATE_BUCKET_NAME}/; } } } \ No newline at end of file