mirror of https://gitlab.federez.net/re2o/re2o
committed by
root
5 changed files with 95 additions and 0 deletions
@ -0,0 +1,91 @@ |
|||||
|
# 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. |
||||
|
|
||||
|
SECRET_KEY = 'dqd1=pr^puqq@6-r9*+7@1g2b2#6nbvv@6j%7r#it@c+r!sk2d' |
||||
|
|
||||
|
DB_PASSWORD = 'M7AJnkkFXM4kM' |
||||
|
|
||||
|
# SECURITY WARNING: don't run with debug turned on in production! |
||||
|
DEBUG = True |
||||
|
|
||||
|
ADMINS = [('Chirac', 'chirac@crans.org')] |
||||
|
|
||||
|
SERVER_EMAIL = 'no-reply@re2o-server.crans.org' |
||||
|
|
||||
|
# Obligatoire, liste des host autorisés |
||||
|
ALLOWED_HOSTS = ['re2o-server.crans.org', 're2o.crans.org'] |
||||
|
|
||||
|
DATABASES = { |
||||
|
'default': { |
||||
|
'ENGINE': 'django.db.backends.postgresql_psycopg2', |
||||
|
'NAME': 're2o', |
||||
|
'USER': 're2o', |
||||
|
'PASSWORD': DB_PASSWORD, |
||||
|
'HOST': 'pgsql.adm.crans.org', |
||||
|
}, |
||||
|
'ldap': { |
||||
|
'ENGINE': 'ldapdb.backends.ldap', |
||||
|
'NAME': 'ldap://10.231.136.244/', |
||||
|
'USER': 'cn=admin,dc=ldap,dc=crans,dc=org', |
||||
|
'PASSWORD': '3K9kCh67iEMHE', |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
# Security settings |
||||
|
SECURE_CONTENT_TYPE_NOSNIFF = False |
||||
|
SECURE_BROWSER_XSS_FILTER = False |
||||
|
SESSION_COOKIE_SECURE = False |
||||
|
CSRF_COOKIE_SECURE = False |
||||
|
CSRF_COOKIE_HTTPONLY = False |
||||
|
X_FRAME_OPTIONS = 'DENY' |
||||
|
SESSION_COOKIE_AGE = 60 * 60 * 3 |
||||
|
|
||||
|
|
||||
|
LOGO_PATH = "static_files/logo.png" |
||||
|
|
||||
|
|
||||
|
# Email `From` field |
||||
|
EMAIL_FROM = 'www-data@server.net' |
||||
|
|
||||
|
EMAIL_HOST = 'smtp.crans.org' |
||||
|
|
||||
|
# Reglages pour la bdd ldap |
||||
|
LDAP = { |
||||
|
'base_user_dn' : 'cn=Utilisateurs,dc=ldap,dc=crans,dc=org', |
||||
|
'base_userservice_dn' : 'ou=service-users,dc=ldap,dc=crans,dc=org', |
||||
|
'base_usergroup_dn' : 'ou=posix,ou=groups,dc=ldap,dc=crans,dc=org', |
||||
|
'base_userservicegroup_dn' : 'ou=services,ou=groups,dc=ldap,dc=crans,dc=org', |
||||
|
'user_gid' : 500, |
||||
|
} |
||||
|
|
||||
|
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 = () |
||||
Loading…
Reference in new issue