Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
melish committed Apr 21, 2017
1 parent b81c3dd commit 5f58636
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions gemet/local_settings.py.docker
Expand Up @@ -65,11 +65,13 @@ if 'GEMET_RDFGZ_PATH' in os.environ:
GEMET_RDFGZ_PATH = os.environ['GEMET_RDFGZ_PATH']

ZOPE_URL = os.environ.get('ZOPE_URL', 'http://www.eionet.europa.eu')
GEMET_URL = ZOPE_URL + os.environ.get('GEMET_URL', '/gemet')
GEMET_URL = 'http://www.eionet.europa.eu/gemet'

# Fill in the following settings to enable LDAP authentication
AUTH_LDAP_SERVER_URI = os.environ.get('AUTH_LDAP_SERVER_URI', 'ldap://ldap3.eionet.europa.eu')
AUTH_LDAP_USER_DN_TEMPLATE = os.environ.get('AUTH_LDAP_USER_DN_TEMPLATE', 'uid=%(user)s,ou=Users,o=EIONET,l=Europe')
AUTH_LDAP_SERVER_URI = os.environ.get(
'AUTH_LDAP_SERVER_URI', 'ldap://ldap3.eionet.europa.eu')
AUTH_LDAP_USER_DN_TEMPLATE = os.environ.get(
'AUTH_LDAP_USER_DN_TEMPLATE', 'uid=%(user)s,ou=Users,o=EIONET,l=Europe')
AUTH_LDAP_START_TLS = True
AUTH_LDAP_USER_ATTR_MAP = {
"first_name": "givenName",
Expand All @@ -79,7 +81,7 @@ AUTH_LDAP_USER_ATTR_MAP = {

Q_CLUSTER = {
'redis': {
'host': 'redis',
'port': 6379,
'host': os.environ.get('REDIS_HOST', 'redis'),
'port': int(os.environ.get('REDIS_PORT', 6379)),
}
}
4 changes: 3 additions & 1 deletion settings.env.example
@@ -1,6 +1,6 @@
ZOPE_URL=http://www.eionet.europa.eu

GEMET_URL=/gemet
GEMET_URL = 'http://www.eionet.europa.eu/gemet'

# FORCE_SCRIPT_NAME=/gemet

Expand All @@ -11,3 +11,5 @@ GEMET_URL=/gemet
# Fill in the following settings to enable LDAP authentication
AUTH_LDAP_SERVER_URI=ldap://ldap3.eionet.europa.eu
AUTH_LDAP_USER_DN_TEMPLATE=uid=%(user)s,ou=Users,o=EIONET,l=Europe
REDIS_HOST=redis
REDIS_PORT=6379

0 comments on commit 5f58636

Please sign in to comment.