mirror of
https://github.com/HaitiData/haitidata.git
synced 2026-10-28 18:36:25 +00:00
* update fixture region * update geoserver and geonode in one container * clean code * update prod setting to receive PROXY_ALLOWED_HOSTS * update architecture to be like geonode * update DATABASE setting * update DATABASE setting * update DATABASE setting * update DATABASE setting * update settings * clean code * update setting to access /geoserver without /api/geoserver * clean code * clean code * Use uwsgi rather than development server. * clean code * update compose and docker file of geoserver
35 lines
905 B
Python
35 lines
905 B
Python
"""Configuration for production server"""
|
|
# noinspection PyUnresolvedReferences
|
|
from .prod import * # noqa
|
|
import os
|
|
|
|
print os.environ
|
|
|
|
DEBUG = True
|
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
ADMINS = (
|
|
('Irwan Fathurrahman', 'irwan@kartoza.com'),)
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
|
'NAME': os.environ['DATABASE_NAME'],
|
|
'USER': os.environ['DATABASE_USERNAME'],
|
|
'PASSWORD': os.environ['DATABASE_PASSWORD'],
|
|
'HOST': os.environ['DATABASE_HOST'],
|
|
'PORT': 5432,
|
|
'TEST_NAME': 'unittests',
|
|
},
|
|
# vector datastore for uploads
|
|
'datastore': {
|
|
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
|
'NAME': 'geonode_data',
|
|
'USER': os.environ['DATABASE_USERNAME'],
|
|
'PASSWORD': os.environ['DATABASE_PASSWORD'],
|
|
'HOST': os.environ['DATABASE_HOST'],
|
|
'PORT': 5432,
|
|
}
|
|
}
|