From fdac0efa0fbd24243d1aa082bb65f32d929f2318 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Thu, 4 Sep 2025 11:04:41 +0100 Subject: [PATCH] Revert "Updated deprecated setting name" This reverts commit 4a12eaa4e26be8b0dccaef13447b7b5d65ab4744. --- am-d-model.env | 2 +- docker-compose.yaml | 2 +- invenio/invenio.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/am-d-model.env b/am-d-model.env index a4676cf..f99a4e4 100644 --- a/am-d-model.env +++ b/am-d-model.env @@ -1,4 +1,4 @@ -INVENIO_TRUSTED_HOSTS=["invenio.am-d-model.eu"] +INVENIO_APP_ALLOWED_HOSTS=["invenio.am-d-model.eu"] INVENIO_S3_ENDPOINT_URL="https://s3.eu-west-1.amazonaws.com" INVENIO_S3_REGION_NAME="eu-west-1" INVENIO_S3_BUCKET_NAME="am-d-model-data-repository" diff --git a/docker-compose.yaml b/docker-compose.yaml index 6990b78..073c881 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -53,7 +53,7 @@ services: - INVENIO_ENV=production # Flask - - INVENIO_TRUSTED_HOSTS=${INVENIO_TRUSTED_HOSTS:-['0.0.0.0', 'localhost', '127.0.0.1']} + - INVENIO_APP_ALLOWED_HOSTS=${INVENIO_APP_ALLOWED_HOSTS:-['0.0.0.0', 'localhost', '127.0.0.1']} # Flask-SQLAlchemy - INVENIO_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://${POSTGRES_USER:-inveniordm}:${POSTGRES_PASSWORD:-inveniordm}@db/${POSTGRES_DB:-inveniordm} diff --git a/invenio/invenio.cfg b/invenio/invenio.cfg index b95c181..a9556c1 100644 --- a/invenio/invenio.cfg +++ b/invenio/invenio.cfg @@ -83,7 +83,7 @@ SEND_FILE_MAX_AGE_DEFAULT = 300 # provided, the allowed hosts variable is set to localhost. In production it # should be set to the correct host and it is strongly recommended to only # route correct hosts to the application. -TRUSTED_HOSTS = ["localhost", "127.0.0.1"] +APP_ALLOWED_HOSTS = ["localhost", "127.0.0.1"] # Flask-SQLAlchemy