2023-02-08 02:27:15 +01:00
|
|
|
# Public root URL
|
2024-12-12 19:33:38 +01:00
|
|
|
public_root_url: "/"
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
# Application root data directory
|
|
|
|
data_directory: "${root_directory_path}/data"
|
|
|
|
|
|
|
|
# Temporary files root directory
|
|
|
|
tmp_root_directory: "${data_directory}/tmp"
|
|
|
|
|
2023-02-27 16:15:47 +01:00
|
|
|
# Temporary uploading files directory (optional, default: PHP ini default)
|
2023-02-08 02:27:15 +01:00
|
|
|
upload_tmp_directory: ${tmp_root_directory}/uploading"
|
|
|
|
|
|
|
|
# Main pagetitle
|
|
|
|
main_pagetitle: "Eesyphp"
|
|
|
|
|
|
|
|
# Debug Ajax request/response
|
|
|
|
debug_ajax: false
|
|
|
|
|
|
|
|
#
|
|
|
|
# Log configuration
|
|
|
|
#
|
|
|
|
log:
|
|
|
|
# Logs directory path
|
|
|
|
directory_path: "${data_directory}/logs"
|
|
|
|
|
|
|
|
# CLI log file path
|
|
|
|
cli_file_path: "${log.directory_path}/cli.log"
|
|
|
|
|
|
|
|
# Log file path
|
|
|
|
file_path: "${log.directory_path}/app.log"
|
|
|
|
|
|
|
|
# Log level (TRACE / DEBUG / INFO / WARNING / ERROR / FATAL)
|
2024-01-23 19:23:10 +01:00
|
|
|
level: "INFO"
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
# Log PHP errors levels (as specified to set_error_handler())
|
|
|
|
# Note: expected a list of PHP error level constants that will be resolved and combine
|
|
|
|
# with a bitwise operator. After the first value, the bitwise operator "|" (OR) or "^" (XOR)
|
|
|
|
# could be specified as contanst name prefix, otherwise the "&" (AND) operator will be used.
|
|
|
|
# The constant name could also be prefix with "~" or "!" (NOT) bitwise operator.
|
|
|
|
#
|
|
|
|
# Default:
|
|
|
|
# - In TRACE or DEBUG: E_ALL & ~E_STRICT
|
|
|
|
# - Otherwise: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
|
|
|
|
#log_php_errors_levels:
|
|
|
|
# - E_ALL
|
|
|
|
# - ~E_NOTICE
|
|
|
|
# - ~E_STRICT
|
|
|
|
# - ~E_DEPRECATED
|
|
|
|
|
|
|
|
#
|
|
|
|
# Sentry configuration
|
|
|
|
#
|
|
|
|
sentry:
|
|
|
|
# Sentry DSN
|
|
|
|
#dsn: null
|
|
|
|
|
|
|
|
# Log PHP errors in Sentry: list of errors types to logs
|
|
|
|
# See: https://www.php.net/manual/fr/errorfunc.constants.php
|
|
|
|
php_error_types:
|
|
|
|
- "E_ERROR"
|
|
|
|
- "E_PARSE"
|
|
|
|
- "E_CORE_ERROR"
|
|
|
|
- "E_COMPILE_ERROR"
|
|
|
|
- "E_USER_ERROR"
|
|
|
|
- "E_RECOVERABLE_ERROR"
|
|
|
|
- "E_DEPRECATED"
|
|
|
|
|
|
|
|
# Traces sample rate (between 0 and 1)
|
|
|
|
# Note: this parameter permit to determine how many transactions (=~ access) are traced and
|
|
|
|
# sent to Sentry, for instance, 0.2 meen that 20% of the transactions will be traced. In dev
|
|
|
|
# mode, set to 1 if you want all transactions are sent to Sentry.
|
|
|
|
# Default: 0.2
|
|
|
|
traces_sample_rate: 0.2
|
|
|
|
|
|
|
|
#
|
2023-02-13 00:42:20 +01:00
|
|
|
# Smarty templates configuration
|
2023-02-08 02:27:15 +01:00
|
|
|
#
|
2023-02-13 00:42:20 +01:00
|
|
|
templates:
|
2023-02-08 02:27:15 +01:00
|
|
|
# Smarty directories
|
|
|
|
directory: "${root_directory_path}/templates"
|
|
|
|
cache_directory: "${tmp_root_directory}/templates_c"
|
2023-02-13 00:42:20 +01:00
|
|
|
# Theme CSS file
|
|
|
|
included_css_files:
|
|
|
|
#- css/custom.css
|
|
|
|
included_js_files:
|
|
|
|
#- js/custom.js
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Translations
|
|
|
|
#
|
|
|
|
i18n:
|
2023-02-27 17:52:51 +01:00
|
|
|
# Default locale (see locales directory for available languages list, default: 'en_US.UTF8')
|
|
|
|
#default_locale: 'en_US.UTF8'
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Session
|
|
|
|
#
|
|
|
|
session:
|
2023-03-07 18:29:34 +01:00
|
|
|
# Session timeout due to inactivity (in seconds)
|
|
|
|
timeout: 1800
|
|
|
|
# Session max duration (in seconds, default : 12h)
|
|
|
|
max_duration: 43200
|
|
|
|
# Directory path where to store PHP sessions data (optional, default: use system default)
|
|
|
|
directory_path: "${data_directory}/sessions"
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Database configuration
|
|
|
|
#
|
|
|
|
db:
|
|
|
|
# Sqlite
|
|
|
|
dsn: "sqlite:${data_directory}/db.sqlite3"
|
|
|
|
options: null
|
|
|
|
|
|
|
|
# Date/Datetime format in database (strptime format)
|
2024-01-23 19:23:10 +01:00
|
|
|
date_format: "%s"
|
|
|
|
datetime_format: "%s"
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
# Postgresql
|
|
|
|
#dsn: "pgsql:host=localhost;port=5432;dbname=items"
|
|
|
|
#user: "items"
|
|
|
|
#pwd: "items"
|
|
|
|
#options: null
|
|
|
|
|
|
|
|
# Date/Datetime format in database (strptime format)
|
2024-01-23 19:23:10 +01:00
|
|
|
#date_format: '%Y-%m-%d' # Example : 2018-10-12
|
|
|
|
#datetime_format: '%Y-%m-%d %H:%M:%S' # Example : 2018-10-12 18:06:59
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
# MariaDB / MySQL
|
|
|
|
#dsn: "mysql:host=localhost;dbname=items"
|
|
|
|
#user: "items"
|
|
|
|
#pwd: "items"
|
|
|
|
#options: null
|
|
|
|
|
|
|
|
# Date/Datetime format in database (strptime format)
|
2024-01-23 19:23:10 +01:00
|
|
|
#date_format: '%Y-%m-%d' # Example : 2018-10-12
|
|
|
|
#datetime_format: '%Y-%m-%d %H:%M:%S' # Example : 2018-10-12 18:06:59
|
2023-02-08 02:27:15 +01:00
|
|
|
|
2023-02-25 05:02:27 +01:00
|
|
|
#
|
|
|
|
# Authentication
|
|
|
|
#
|
|
|
|
auth:
|
|
|
|
# Enabled authentication
|
2023-03-07 18:50:05 +01:00
|
|
|
enabled: true
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
# Methods to authenticate users
|
|
|
|
methods:
|
|
|
|
- form
|
|
|
|
- http
|
|
|
|
#- cas
|
|
|
|
|
|
|
|
# User backends
|
|
|
|
backends:
|
2023-03-07 18:50:05 +01:00
|
|
|
- db
|
2023-11-17 12:57:38 +01:00
|
|
|
#- ldap
|
|
|
|
#- casuser
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Login form
|
|
|
|
#
|
|
|
|
login_form:
|
2023-03-07 18:12:58 +01:00
|
|
|
# Include application navbar (default: true)
|
|
|
|
include_navbar: true
|
|
|
|
|
2023-02-25 05:02:27 +01:00
|
|
|
# Display link for other authentication methods
|
|
|
|
# Note: method as key and label as value
|
|
|
|
display_other_methods:
|
|
|
|
http: "HTTP"
|
|
|
|
cas: "SSO"
|
|
|
|
|
2023-04-22 18:56:13 +02:00
|
|
|
# Remember username
|
|
|
|
# Enable the feature (default: true)
|
|
|
|
# remember_username: true
|
|
|
|
# Cookie name (default: remember_username)
|
|
|
|
# remember_username_cookie_name: "remember_username"
|
|
|
|
|
2023-02-25 05:02:27 +01:00
|
|
|
#
|
|
|
|
# HTTP Authentication Configuration
|
|
|
|
#
|
|
|
|
http:
|
|
|
|
# HTTP Auth methods :
|
2024-01-23 19:23:10 +01:00
|
|
|
# * AUTHORIZATION : use HTTP_AUTHORIZATION environment. This mode could be use with PHP FPM.
|
2023-02-25 05:02:27 +01:00
|
|
|
# Specific configuration is need in Apache to use this mode :
|
|
|
|
# RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
2024-01-23 19:23:10 +01:00
|
|
|
# * REMOTE_USER : use REMOTE_USER environment variable to retrieve authenticated user's login
|
2023-02-25 05:02:27 +01:00
|
|
|
# This method could be only used with $http_auth_trust_without_password_challenge
|
|
|
|
# enabled.
|
2024-01-23 19:23:10 +01:00
|
|
|
# * PHP_AUTH : use PHP_AUTH_USER and PHP_AUTH_PW environment variables (only available
|
2023-02-25 05:02:27 +01:00
|
|
|
# using mod_php with Apache. (default)
|
2024-01-23 19:23:10 +01:00
|
|
|
method: "PHP_AUTH"
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
# Trust HTTP server authentication
|
2024-01-23 19:23:10 +01:00
|
|
|
# If enabled, the application will no check user credentials and only retrieve user's login
|
2023-02-25 05:02:27 +01:00
|
|
|
# from HTTP server.
|
|
|
|
#trust_without_password_challenge: true
|
|
|
|
|
|
|
|
# Realm (use when force HTTP login, optional)
|
|
|
|
#realm: "Authentication required"
|
|
|
|
|
|
|
|
#
|
|
|
|
# CAS Configuration
|
|
|
|
#
|
|
|
|
cas:
|
|
|
|
# CAS host (just the domain name)
|
2024-01-23 19:23:10 +01:00
|
|
|
host: "idp.example.com"
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
# CAS context (the root path, default: '/idp/cas')
|
|
|
|
# Example: for 'http://idp.example.com/idp/cas', put '/idp/cas'
|
2024-01-23 19:23:10 +01:00
|
|
|
context: "/idp/cas"
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
# CAS HTTP port (default: 443)
|
|
|
|
#port: 443
|
|
|
|
|
|
|
|
# CAS procotol version
|
2024-01-23 19:23:10 +01:00
|
|
|
# Possible values: "1.0", "2.0" (default), "3.0" or "S1" (SAML1)
|
2023-02-25 05:02:27 +01:00
|
|
|
#version: '2.0'
|
|
|
|
|
|
|
|
# CAS server SSL certificate validation (set to false to disable)
|
|
|
|
ca_cert_certificate_path: "/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
|
|
|
|
# CAS Debug log file
|
|
|
|
#debug_log_file: "${root_directory_path}/data/logs/cas.log"
|
|
|
|
|
|
|
|
# CAS Logout
|
|
|
|
#logout: true # Enable CAS logout on app logout
|
|
|
|
#logout_url: "https://my.example.fr/logout/" # Specify custom CAS logout URL
|
|
|
|
|
|
|
|
# CAS Fake authenticated user
|
|
|
|
#fake_authenticated_user: 'myusername'
|
2024-12-03 02:55:50 +01:00
|
|
|
#fake_authenticated_user_attributes:
|
|
|
|
# attr1: value1
|
|
|
|
# attr2: value2
|
2024-01-23 19:23:10 +01:00
|
|
|
|
|
|
|
# CAS user attributes to retrieve with their properties:
|
2023-11-17 12:57:38 +01:00
|
|
|
# [attr name]:
|
|
|
|
# # CAS attribute name (optional, default: [attr name])
|
|
|
|
# cas_name: [CAS attr name]
|
|
|
|
# # Alternative CAS attribute name to retrieve if the first one is not defined (optional)
|
|
|
|
# alt_cas_name: [alternative CAS attr name]
|
|
|
|
# # Type of value (optional, default: 'string', possible values: string, bool, int, float)
|
|
|
|
# type: [type of value]
|
|
|
|
# # Default attribute value (optional, default: null)
|
|
|
|
# default: null
|
|
|
|
# Note: only used by casuser auth backend.
|
|
|
|
user_attributes:
|
|
|
|
login:
|
2024-01-23 19:23:10 +01:00
|
|
|
cas_name: "uid"
|
2023-11-17 12:57:38 +01:00
|
|
|
default: null
|
|
|
|
name:
|
2024-01-23 19:23:10 +01:00
|
|
|
cas_name: "displayName"
|
2024-05-27 17:39:42 +02:00
|
|
|
alt_cas_name: "cn"
|
2023-11-17 12:57:38 +01:00
|
|
|
default: null
|
|
|
|
mail:
|
2024-01-23 19:23:10 +01:00
|
|
|
type: "string"
|
2023-02-25 05:02:27 +01:00
|
|
|
|
2023-03-07 18:50:05 +01:00
|
|
|
#
|
|
|
|
# Database user backend
|
|
|
|
#
|
|
|
|
db:
|
|
|
|
# DSN (required)
|
|
|
|
dsn: "${db.dsn}"
|
|
|
|
# Username (optional but could be required with some PDO drivers)
|
|
|
|
user: "${db.user}"
|
|
|
|
# Password (optional)
|
|
|
|
password: "${db.password}"
|
|
|
|
# PDO options (optional)
|
|
|
|
options: "${db.options}"
|
|
|
|
# Users table name (optional, default: users)
|
|
|
|
users_table: "users"
|
|
|
|
# Username field name (optional, default: username)
|
|
|
|
username_field: "username"
|
|
|
|
# Password field name (optional, default: password)
|
|
|
|
password_field: "password"
|
|
|
|
# Exposed users table fields in resulting EesyPHP\Auth\User object
|
2024-01-23 19:23:10 +01:00
|
|
|
# (optional, default: name, mail)
|
2023-03-07 18:50:05 +01:00
|
|
|
exposed_fields:
|
|
|
|
- "name"
|
|
|
|
- "mail"
|
|
|
|
|
2023-02-25 05:02:27 +01:00
|
|
|
#
|
|
|
|
# LDAP user backend
|
|
|
|
#
|
|
|
|
ldap:
|
|
|
|
# LDAP host (required, multiple hosts could be specified with comma separator)
|
2024-01-23 19:23:10 +01:00
|
|
|
host: "ldap://localhost"
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
# LDAP port (optional)
|
|
|
|
#port: 389
|
|
|
|
|
|
|
|
# Enable STARTTLS (optional, default: false)
|
|
|
|
#starttls: false
|
|
|
|
|
|
|
|
# LDAP directory base DN (required)
|
2024-01-23 19:23:10 +01:00
|
|
|
basedn: "o=example"
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
# LDAP bind DN (optional)
|
|
|
|
#bind_dn: 'uid=eesyphp,ou=sysaccounts,${auth.ldap.basedn}'
|
|
|
|
|
|
|
|
# LDAP bind password (optional)
|
|
|
|
#bind_password: 'secret'
|
|
|
|
|
2024-12-12 19:33:38 +01:00
|
|
|
# LDAP options (optional)
|
|
|
|
# See https://www.php.net/manual/en/function.ldap-set-option.php for available options.
|
|
|
|
# Note: Options may defined by using PHP LDAP_OPT_* constant names.
|
|
|
|
# Default: LDAP_OPT_X_TLS_CERTFILE = /etc/ssl/certs/ca-certificates.crt
|
|
|
|
#options:
|
|
|
|
# LDAP_OPT_X_TLS_REQUIRE_CERT: LDAP_OPT_X_TLS_NEVER
|
|
|
|
# LDAP_OPT_X_TLS_CERTFILE: "/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
|
2023-02-25 05:02:27 +01:00
|
|
|
# User search filter by username. The keyword "[username]" will be replace before search by
|
|
|
|
# the looked username (default: "uid=[username]")
|
|
|
|
#user_filter_by_uid: 'uid=[username]'
|
|
|
|
|
|
|
|
# User base DN
|
2024-01-23 19:23:10 +01:00
|
|
|
user_basedn: "ou=people,${auth.ldap.basedn}"
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
# Bind with username instead of user DN (optional, default: false)
|
|
|
|
#bind_with_username: true
|
|
|
|
|
2024-01-23 19:23:10 +01:00
|
|
|
# LDAP user attributes to retrieve with their properties:
|
2023-02-28 15:34:35 +01:00
|
|
|
# [attr name]:
|
|
|
|
# # LDAP attribute name (optional, default: [attr name])
|
|
|
|
# ldap_name: [LDAP attr name]
|
|
|
|
# # Alternative LDAP attribute name to retrieve if the first one is not defined (optional)
|
|
|
|
# alt_ldap_name: [alternative LDAP attr name]
|
|
|
|
# # Type of value (optional, default: 'string', possible values: string, bool, int, float)
|
|
|
|
# type: [type of value]
|
|
|
|
# # Multivalued attribute (optional, default: false)
|
|
|
|
# multivalued: true
|
|
|
|
# # Default attribute value (optional, default: null)
|
|
|
|
# default: null
|
2023-02-25 05:02:27 +01:00
|
|
|
user_attributes:
|
2023-02-28 15:34:35 +01:00
|
|
|
login:
|
2024-01-23 19:23:10 +01:00
|
|
|
ldap_name: "uid"
|
2023-02-25 05:02:27 +01:00
|
|
|
multivalued: false
|
|
|
|
default: null
|
2023-02-28 15:34:35 +01:00
|
|
|
name:
|
2024-01-23 19:23:10 +01:00
|
|
|
ldap_name: "displayName"
|
|
|
|
alt_ldap_name: "cn"
|
2023-02-25 05:02:27 +01:00
|
|
|
multivalued: false
|
|
|
|
default: null
|
|
|
|
mail:
|
2024-01-23 19:23:10 +01:00
|
|
|
type: "string"
|
2023-02-25 05:02:27 +01:00
|
|
|
|
|
|
|
# PEAR Net_LDAP2 library path (optional, default: Net/LDAP2.php)
|
|
|
|
#netldap2_path: 'Net/LDAP2.php'
|
|
|
|
|
2023-02-08 02:27:15 +01:00
|
|
|
#
|
|
|
|
# Email configuration
|
|
|
|
#
|
|
|
|
email:
|
|
|
|
# PHP PEAR Mail and Mail_Mine paths
|
2024-01-23 19:23:10 +01:00
|
|
|
php_mail_path: "Mail.php"
|
|
|
|
php_mail_mime_path: "Mail/mime.php"
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
# Sending method :
|
|
|
|
# - mail : use PHP mail function
|
|
|
|
# - sendmail : use sendmail system command
|
|
|
|
# - smtp : use an SMTP server (PHP PEAR Net_SMTP required)
|
2024-01-23 19:23:10 +01:00
|
|
|
send_method: "smtp"
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
# Sending parameters
|
|
|
|
# See : http:#pear.php.net/manual/en/package.mail.mail.factory.php
|
|
|
|
send_params: NULL
|
|
|
|
|
|
|
|
# Headers add to all e-mails sent
|
|
|
|
headers:
|
|
|
|
#- "CC: support@example.com"
|
|
|
|
|
|
|
|
# Email sender address (for all emails sent by the application)
|
|
|
|
sender: "noreply@example.org"
|
|
|
|
|
|
|
|
# Catch all e-mails sent to a configured e-mail address
|
|
|
|
catch_all: false
|
|
|
|
# Web Stats JS code
|
2023-02-27 16:35:35 +01:00
|
|
|
#webstats_js_code: ''
|
2023-02-08 02:27:15 +01:00
|
|
|
|
|
|
|
# vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab
|