Skip to content
Snippets Groups Projects
Commit ce3e0f6d authored by Ben Adida's avatar Ben Adida
Browse files

require SSL on postgres

parent 3e3424aa
Branches
No related tags found
No related merge requests found
......@@ -50,6 +50,9 @@ if get_from_env('DATABASE_URL', None):
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
DATABASES['default']['CONN_MAX_AGE'] = 600
# require SSL
DATABASES['default']['OPTIONS'] = {'sslmode': 'require'}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment