8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 12:53:11 +00:00
re2o/re2o/settings_local.example.py

91 lines
2.5 KiB
Python
Raw Normal View History

2017-01-15 23:01:18 +00:00
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
#
# Copyright © 2017 Gabriel Détraz
# Copyright © 2017 Goulven Kermarec
# Copyright © 2017 Augustin Lemesle
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import unicode_literals
2017-08-30 12:17:22 +00:00
SECRET_KEY = 'SUPER_SECRET_KEY'
2016-07-06 10:29:49 +00:00
2017-08-30 12:17:22 +00:00
DB_PASSWORD = 'SUPER_SECRET_DB'
2016-07-06 10:29:49 +00:00
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
2017-01-15 13:32:12 +00:00
ADMINS = [('Example', 'rezo-admin@example.org')]
SERVER_EMAIL = 'no-reply@example.org'
2016-12-12 15:59:33 +00:00
# Obligatoire, liste des host autorisés
2017-08-31 20:09:38 +00:00
ALLOWED_HOSTS = ['URL_SERVER']
2016-07-06 10:29:49 +00:00
DATABASES = {
'default': {
'ENGINE': 'db_engine',
2017-08-30 12:17:22 +00:00
'NAME': 'db_name_value',
'USER': 'db_user_value',
2016-07-06 10:29:49 +00:00
'PASSWORD': DB_PASSWORD,
2017-08-30 12:17:22 +00:00
'HOST': 'db_host_value',
2016-10-12 10:46:39 +00:00
},
'ldap': {
'ENGINE': 'ldapdb.backends.ldap',
2017-08-30 12:17:22 +00:00
'NAME': 'ldap://ldap_host_ip/',
'USER': 'ldap_dn',
'PASSWORD': 'SUPER_SECRET_LDAP',
2016-10-12 10:46:39 +00:00
}
2016-07-06 10:29:49 +00:00
}
2016-12-12 15:59:33 +00:00
# Security settings
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
CSRF_COOKIE_HTTPONLY = True
X_FRAME_OPTIONS = 'DENY'
SESSION_COOKIE_AGE = 60 * 60 * 3
2016-07-14 12:08:50 +00:00
LOGO_PATH = "static_files/logo.png"
2016-07-20 10:18:37 +00:00
2017-09-08 19:19:32 +00:00
EMAIL_HOST = 'MY_EMAIL_HOST'
EMAIL_PORT = MY_EMAIL_PORT
2016-10-12 10:46:39 +00:00
# Reglages pour la bdd ldap
LDAP = {
'base_user_dn' : 'cn=Utilisateurs,dc=example,dc=org',
'base_userservice_dn' : 'ou=service-users,dc=example,dc=org',
'base_usergroup_dn' : 'ou=posix,ou=groups,dc=example,dc=org',
'base_userservicegroup_dn' : 'ou=services,ou=groups,dc=example,dc=org',
2016-10-12 10:46:39 +00:00
'user_gid' : 500,
}
2017-07-02 01:04:42 +00:00
2016-10-12 10:46:39 +00:00
UID_RANGES = {
'users' : [21001,30000],
'service-users' : [20000,21000],
}
# Chaque groupe a un gid assigné, voici la place libre pour assignation
GID_RANGES = {
'posix' : [501, 600],
}
OPTIONNAL_APPS = ()
2017-07-02 01:04:42 +00:00