Skip to content

Commit

Permalink
modify settings prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongundel committed Oct 18, 2024
1 parent cea0d1b commit 49aac2f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 30 deletions.
4 changes: 2 additions & 2 deletions arches_lingo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_optional_env_variable(var_name, default=None) -> str:
RESOURCE_IMPORT_LOG = get_optional_env_variable("ARCHES_RESOURCEIMPORTLOG", os.path.join(APP_ROOT, "logs", "resource_import.log"))
ARCHES_LOG_PATH = get_optional_env_variable("ARCHES_LOGPATH", os.path.join(ROOT_DIR, "arches.log"))

STORAGE_BACKEND = get_optional_env_variable("STORAGEBACKEND", "django.core.files.storage.FileSystemStorage")
STORAGE_BACKEND = get_optional_env_variable("ARCHES_STORAGEBACKEND", "django.core.files.storage.FileSystemStorage")

if STORAGE_BACKEND == "storages.backends.s3.S3Storage":
import psutil
Expand Down Expand Up @@ -260,7 +260,7 @@ def get_optional_env_variable(var_name, default=None) -> str:
app_root=APP_ROOT,
)

ALLOWED_HOSTS = []
ALLOWED_HOSTS = get_optional_env_variable("ARCHES_ALLOWED_HOSTS", "*").split(',')

SYSTEM_SETTINGS_LOCAL_PATH = os.path.join(APP_ROOT, "system_settings", "System_Settings.json")
WSGI_APPLICATION = "arches_lingo.wsgi.application"
Expand Down
24 changes: 10 additions & 14 deletions docker/deploy/task-definition-reset-database.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,51 +26,47 @@
],
"environment": [
{
"name": "ES_SECRET_ID",
"name": "ARCHES_ES_SECRET_ID",
"value": "prod/lingo/elastic"
},
{
"name": "DB_SECRET_ID",
"name": "ARCHES_DB_SECRET_ID",
"value": "archesDbSecretC996653C-9RvtCl4Ud1ud"
},
{
"name": "PUBLIC_SERVER_ADDRESS",
"name": "ARCHES_PUBLIC_SERVER_ADDRESS",
"value": "https://lingo.dev.fargeo.com"
},
{
"name": "SECRETS_MODE",
"name": "ARCHES_SECRETS_MODE",
"value": "AWS"
},
{
"name": "S3FILEOVERWRITE",
"name": "ARCHES_S3FILEOVERWRITE",
"value": "False"
},
{
"name": "ALLOWED_HOSTS",
"name": "ARCHES_ALLOWED_HOSTS",
"value": "lingo.dev.fargeo.com"
},
{
"name": "TRUSTEDORIGINS",
"value": "https://lingo.dev.fargeo.com"
},
{
"name": "ESPROTOCOL",
"name": "ARCHES_ESPROTOCOL",
"value": "https"
},
{
"name": "ESVALIDATE",
"name": "ARCHES_ESVALIDATE",
"value": "False"
},
{
"name": "ARCHES_PROJECT",
"value": "arches-lingo"
},
{
"name": "STORAGEBACKEND",
"name": "ARCHES_STORAGEBACKEND",
"value": "storages.backends.s3.S3Storage"
},
{
"name": "S3BUCKETNAME",
"name": "ARCHES_S3BUCKETNAME",
"value": "fargeo-lingo-media-files"
}
],
Expand Down
24 changes: 10 additions & 14 deletions docker/deploy/task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,51 +17,47 @@
],
"environment": [
{
"name": "ES_SECRET_ID",
"name": "ARCHES_ES_SECRET_ID",
"value": "prod/lingo/elastic"
},
{
"name": "DB_SECRET_ID",
"name": "ARCHES_DB_SECRET_ID",
"value": "archesDbSecretC996653C-qRg6QQ5XOMB9"
},
{
"name": "PUBLIC_SERVER_ADDRESS",
"name": "ARCHES_PUBLIC_SERVER_ADDRESS",
"value": "https://lingo.dev.fargeo.com"
},
{
"name": "SECRETS_MODE",
"name": "ARCHES_SECRETS_MODE",
"value": "AWS"
},
{
"name": "ALLOWED_HOSTS",
"name": "ARCHES_ALLOWED_HOSTS",
"value": "lingo.dev.fargeo.com"
},
{
"name": "TRUSTEDORIGINS",
"value": "https://lingo.dev.fargeo.com"
},
{
"name": "ESVALIDATE",
"name": "ARCHES_ESVALIDATE",
"value": "False"
},
{
"name": "ARCHES_PROJECT",
"value": "arches-lingo"
},
{
"name": "ESPROTOCOL",
"name": "ARCHES_ESPROTOCOL",
"value": "https"
},
{
"name": "S3FILEOVERWRITE",
"name": "ARCHES_S3FILEOVERWRITE",
"value": "False"
},
{
"name": "STORAGEBACKEND",
"name": "ARCHES_STORAGEBACKEND",
"value": "storages.backends.s3.S3Storage"
},
{
"name": "S3BUCKETNAME",
"name": "ARCHES_S3BUCKETNAME",
"value": "fargeo-1-lingo-media-files"
}
],
Expand Down

0 comments on commit 49aac2f

Please sign in to comment.