make update possible without the API_DOMAIN

master
Girish Ramakrishnan 2022-01-21 14:18:25 -08:00
parent 7d38995613
commit 9820e5bf90
4 changed files with 8 additions and 3 deletions

View File

@ -1011,3 +1011,9 @@ Improve replication performance. See (#12080, #12054, #12009) for more details.
* SSE-KMS support was not working with copyObject() refer #13206
* Support UserInfo claims refer #12469
[2.0.0]
* **This is a major update. The changes below are required for the app to work. The newer version of the app has 2 domain names - one for the console (browser UI) and one of the API domain (API/S3 requests). **
* Be sure to take a backup before updating the app.
* Once updated, go to the `Location` view and set the API Domain.
* Update the various apps/servers/code to use the API domain as the backup destination.

View File

@ -5,7 +5,7 @@
"description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG",
"tagline": "Distributed object storage",
"version": "1.167.0",
"version": "2.0.0",
"healthCheckPath": "/minio/login",
"httpPort": 8000,
"httpPorts": {

View File

@ -8,7 +8,7 @@ mkdir -p /app/data/data /run/minio/config /run/minio/certs
source /app/data/env.sh
# https://docs.min.io/minio/baremetal/reference/minio-server/minio-server.html#envvar.MINIO_SERVER_URL
export MINIO_SERVER_URL="https://${API_SERVER_DOMAIN}"
[[ -n "${API_SERVER_DOMAIN:-}" ]] && export MINIO_SERVER_URL="https://${API_SERVER_DOMAIN}"
export MINIO_BROWSER_REDIRECT_URL="https://${CLOUDRON_APP_DOMAIN}"
if [[ ! -d /app/data/mc_config ]]; then

View File

@ -165,7 +165,6 @@ describe('Application life cycle test', function () {
it('can add buckets', old_addBucket);
it('can logout', old_logout);
it('can update', function () { execSync(`cloudron update --app ${LOCATION} --no-wait`, EXEC_ARGS); });
it('can enable API Port', function () { execSync(`cloudron configure --app ${LOCATION} -p API_PORT=9000 -l ${LOCATION} `, EXEC_ARGS); });
it('can get app information', getAppInfo);
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));