Configuration options¶
Configuration settings¶
The following settings have an effect on the app.
To run mde-thredds you need to change configuration of the DATABASE
in settings.py to PostgreSQL be enabled as below:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": os.getenv("POSTGRES_DB") or "mde_dev",
"USER": os.getenv("POSTGRES_USER") or "database_username",
"PASSWORD": os.getenv("POSTGRES_PASSWORD", "database_password"),
"HOST": os.getenv("POSTGRES_HOST", "localhost"),
"PORT": os.getenv("POSTGRES_PORT") or "5432",
}
}
Also for enabiling mde-thredds restart module it’s needed to add the following lines to the end of settings.py
Q_CLUSTER = {
'name': 'mde_thredds',
'orm': 'default', # Use Django's ORM + database for broker
"workers": 4,
"recycle": 500,
"timeout": 60,
"compress": True,
"save_limit": 250,
"queue_limit": 500,
"cpu_affinity": 1,
"redis": {
'host': '127.0.0.1',
'port': 6379,
'db': 0, }
}