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

Update settings_local

This commit is contained in:
Gabriel Detraz 2016-12-12 16:59:33 +01:00
parent b1d86cd550
commit 5c3e93b5b4

View file

@ -5,7 +5,8 @@ DB_PASSWORD = 'SUPER_SECRET'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False DEBUG = False
ALLOWED_HOSTS = [] # Obligatoire, liste des host autorisés
ALLOWED_HOSTS = ['test.example.org']
DATABASES = { DATABASES = {
'default': { 'default': {
@ -23,10 +24,22 @@ DATABASES = {
} }
} }
# 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
# Association information # Association information
SITE_NAME = "Re2o.rez" SITE_NAME = "Re2o.rez"
# Main extension used in asso
MAIN_EXTENSION = ".rez"
LOGO_PATH = "static_files/logo.png" LOGO_PATH = "static_files/logo.png"
ASSO_NAME = "Asso reseau" ASSO_NAME = "Asso reseau"
ASSO_ADDRESS_LINE1 = "2, rue Edouard Belin" ASSO_ADDRESS_LINE1 = "2, rue Edouard Belin"
@ -34,6 +47,7 @@ ASSO_ADDRESS_LINE2 = "57070 Metz"
ASSO_SIRET = "" ASSO_SIRET = ""
ASSO_EMAIL = "tresorier@ecole.fr" ASSO_EMAIL = "tresorier@ecole.fr"
ASSO_PHONE = "01 02 03 04 05" ASSO_PHONE = "01 02 03 04 05"
ASSO_PSEUDO = "rezo"
services_urls = { services_urls = {
#Fill IT : ex : 'gitlab': { #Fill IT : ex : 'gitlab': {
@ -50,6 +64,8 @@ REQ_EXPIRE_STR = '48 heures'
# Email `From` field # Email `From` field
EMAIL_FROM = 'www-data@serveur.net' EMAIL_FROM = 'www-data@serveur.net'
EMAIL_HOST = 'smtp.example.org'
# Reglages pour la bdd ldap # Reglages pour la bdd ldap
LDAP = { LDAP = {
'base_user_dn' : 'cn=Utilisateurs,dc=ldap,dc=example,dc=org', 'base_user_dn' : 'cn=Utilisateurs,dc=ldap,dc=example,dc=org',
@ -68,6 +84,18 @@ GID_RANGES = {
'posix' : [501, 600], 'posix' : [501, 600],
} }
# Main extension used in asso # Affchage des résultats
MAIN_EXTENSION = ".rez" SEARCH_RESULT = 15
# Max machines et max alias autorisés par personne
MAX_INTERFACES = 4
MAX_ALIAS = 4
# Liste des vlans id disponible sur un switch
VLAN_ID_LIST = [7,8,42,69]
# Décision radius à prendre
RADIUS_VLAN_DECISION = {
'VLAN_NOK' : 42,
'VLAN_OK' : 69,
}