2020-06-07 15:17:01 +00:00
|
|
|
# coding: utf-8
|
2020-11-23 16:06:37 +00:00
|
|
|
# Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il
|
2020-06-07 15:17:01 +00:00
|
|
|
# se veut agnostique au réseau considéré, de manière à être installable en
|
|
|
|
# quelques clics.
|
|
|
|
#
|
|
|
|
# Copyright © 2017 Gabriel Détraz
|
|
|
|
# Copyright © 2017 Lara 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.
|
2021-02-18 17:41:51 +00:00
|
|
|
"""re2o.settings_local
|
2020-06-07 15:17:01 +00:00
|
|
|
The file with all the available options for a locale configuration of re2o
|
|
|
|
"""
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
# Should the server run in debug mode ?
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
|
|
DEBUG = False
|
|
|
|
|
|
|
|
# The time zone the server is runned in
|
|
|
|
TIME_ZONE = "Europe/Paris"
|
|
|
|
|
|
|
|
# Security settings for secure https
|
|
|
|
# Activate once https is correctly configured
|
|
|
|
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"
|
|
|
|
|
|
|
|
# The validity duration of session cookies, in seconds
|
|
|
|
SESSION_COOKIE_AGE = 60 * 60 * 3
|
|
|
|
|
|
|
|
# The path where your organization logo is stored
|
|
|
|
LOGO_PATH = "static_files/logo.png"
|
|
|
|
|
|
|
|
# A range of UID to use. Used in linux environement
|
|
|
|
UID_RANGES = {"users": [21001, 30000], "service-users": [20000, 21000]}
|
|
|
|
|
|
|
|
# A range of GID to use. Used in linux environement
|
|
|
|
GID_RANGES = {"posix": [501, 600]}
|
|
|
|
|
2021-02-17 12:05:59 +00:00
|
|
|
# Default gid
|
|
|
|
DEFAULT_GID = 500
|
|
|
|
|
2020-06-07 15:17:01 +00:00
|
|
|
# If you want to add a database routers, please fill in above and add your databse.
|
|
|
|
# Then, add a file "local_routers.py" in folder app re2o, and add your router path in
|
2021-02-10 10:06:09 +00:00
|
|
|
# the LOCAL_ROUTERS var as "re2o.local_routers.DbRouter". You can also add extra routers.
|
2020-06-07 15:17:01 +00:00
|
|
|
LOCAL_ROUTERS = []
|
|
|
|
|
|
|
|
# Some optionnal Re2o Apps
|
|
|
|
OPTIONNAL_APPS_RE2O = ()
|
|
|
|
|
|
|
|
# Some Django apps you want to add in you local project
|
|
|
|
OPTIONNAL_APPS = OPTIONNAL_APPS_RE2O + ()
|
|
|
|
|
2021-02-16 11:23:04 +00:00
|
|
|
# Add statiffiles dir that were installed using system packaging
|
|
|
|
SYSTEM_STATICFILES_DIRS = ()
|
|
|
|
|
|
|
|
# Wether to use CDN to retrieve bootstrap, font-aweseome and jquery files
|
|
|
|
USE_CDN = False
|
|
|
|
|
2021-02-10 10:06:09 +00:00
|
|
|
# Set auth password validator
|
2020-06-07 15:17:01 +00:00
|
|
|
AUTH_PASSWORD_VALIDATORS = [
|
|
|
|
{
|
2021-02-10 10:06:09 +00:00
|
|
|
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
|
|
|
|
"OPTIONS": {
|
|
|
|
"user_attributes": ["surname", "pseudo", "name", "email"],
|
|
|
|
},
|
2020-06-07 15:17:01 +00:00
|
|
|
},
|
|
|
|
{
|
2021-02-10 10:06:09 +00:00
|
|
|
"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
|
|
|
|
"OPTIONS": {
|
|
|
|
"min_length": 8,
|
|
|
|
},
|
2020-06-07 15:17:01 +00:00
|
|
|
},
|
|
|
|
{
|
2021-02-10 10:06:09 +00:00
|
|
|
"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
|
2020-06-07 15:17:01 +00:00
|
|
|
},
|
|
|
|
{
|
2021-02-10 10:06:09 +00:00
|
|
|
"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
|
2020-06-07 15:17:01 +00:00
|
|
|
},
|
|
|
|
]
|