adding minio URL to objectStoreUrl check

This commit is contained in:
Martin McKeaveney 2021-12-31 13:28:52 +00:00
parent 150fc3b11d
commit 4d77353692
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ exports.checkSlashesInUrl = url => {
* @return {string} The base URL of the object store (MinIO or S3).
*/
exports.objectStoreUrl = () => {
if (env.SELF_HOSTED) {
if (env.SELF_HOSTED || env.MINIO_URL) {
// can use a relative url for this as all goes through the proxy (this is hosted in minio)
return OBJ_STORE_DIRECTORY
} else {