# You can pass environment variables to CodeIgniter legacy application:
#CI_ENV=development
#CI_ENV=testing
CI_ENV=production

MYSQL_HOST=mysql
MYSQL_USER=jorani
MYSQL_PASSWORD=jorani
MYSQL_DATABASE=jorani
MYSQL_ROOT_PASSWORD=jorani

SMTP_HOST=mailpit
SMTP_USER=
SMTP_PASSWORD=
SMTP_PORT=1025
SMTP_CRYPTO=

BASE_URL=
ENC_KEY=YJ9FljXV4axG7QTzEzbRaUBFwi0FzIls

OAUTH2_CLIENT_ID=
OAUTH2_CLIENT_ID=
OAUTH2_CLIENT_SECRET=
LANGUAGE=english
LOG_THRESHOLD=2
LOG_PATH=php://stdout

FROM_MAIL=do.not@reply.me
FROM_NAME=Jorani
SUBJECT_PREFIX=[Jorani]
# Set this value to TRUE if you want to disable the capitalization of lastname
DISABLE_CAPITALIZATION=FALSE
# Password minimal length
PASSWORD_LENGTH=8
# Default role id (e.g. 2 for user)
DEFAULT_ROLE_ID=2
# Login pattern=jdoe (automatically created from firstname and lastname)
# LOGIN_PATTERN='john.doe';    # Firstname plus dot plus lastname (up to field limit)
# LOGIN_PATTERN='john_doe';    # Firstname plus underscore plus lastname (up to field limit)
# LOGIN_PATTERN='#email';       # Copy another field of the form (use an existing field name with the pound sign)
LOGIN_PATTERN=jdoe
# Set this value to TRUE if you want to create leaves at status requested instead of planned
LEAVE_STATUS_REQUESTED=FALSE
# Set this value with the default leave type identifier (integer).
DEFAULT_LEAVE_TYPE=FALSE
# Create a leave request / Allow overwrite of the duration
# Switch to read-only (the duration of leave is computed)
DISABLE_EDIT_LEAVE_DURATION=FALSE
# Set this value to TRUE if you want to create extras at status requested instead of planned
EXTRA_STATUS_REQUESTED=FALSE
# Set this value to TRUE if you want to allow manager to create leave requests in behalf of their collaborators
REQUESTS_BY_MANAGER=TRUE
# Set this value to true if you want to force the manager to comment rejections
MANDATORY_COMMENT_ON_REJECT=FALSE
# Set this value to true if you want to forbid the employee to submit a leave request with a negative amount 
DISALLOW_REQUESTS_WITHOUT_CREDIT=TRUE
# List of available languages. If you limit this list to one language, the list of available languages will be hidden from the login form
# Beware that regional variant is case sensitivie (e.g. "en-GB" and not "en-gb")
LANGUAGES=en,en-GB,fr,es,nl,de,it,ru,cs,uk,km,fa,vi,tr,zh,el,pt,ar,hu,ca,ro
# Hide/Disable features
# Set this value to TRUE if you want to hide the menu entries related to overtime
DISABLE_OVERTIME=FALSE
# Set this value to TRUE if you want to hide global calendars (global/tabular) to users
HIDE_GLOBAL_CALS_TO_USERS=FALSE
# Set this value to TRUE in order to disable the menu entry 'departement'
DISABLE_DEPARTMENT_CALENDAR=FALSE
# Set this value to TRUE in order to disable the menu entry 'my workmates'
DISABLE_WORKMATES_CALENDAR=FALSE

# Google analytics tracking code (if empty, the Javascript tracking code will be desactivated).
# An option allows you to send the identifier of the connected user (a special configuration must be set in GA first).
# See https:# developers.google.com/analytics/devguides/collection/analyticsjs/user-id
GA_CODE=''
GA_SEND_USERID=FALSE

# LDAP configuration
LDAP_ENABLED=FALSE
LDAP_HOST=ldap
LDAP_PORT=1389
# Change the pattern, but let %s that symbolizes the user identifier
LDAP_BASEDN=uid=%s,ou=people,dc=example,dc=org
# If you switch on <<ldap_search_enabled>>, <<ldap_basedn>> may look like "OU=Users,DC=COMPANY,DC=COM"
# If TRUE, ldap path is taken from user table
LDAP_BASEDN_DB=FALSE

# Use a LDAP search filter as a connection alternative
# Note that you need to switch <<ldap_enabled>> to TRUE and fill <<ldap_host>>,
# <<ldap_port>>, and <<ldap_basedn>>
LDAP_SEARCH_ENABLED=FALSE
LDAP_SEARCH_USER=
LDAP_SEARCH_PASSWORD=
# Change the pattern, but let %s that symbolizes the user identifier
LDAP_SEARCH_PATTERN=cn=%s

# Enable public ICS feeds (global calendar, contract, personal information)
ICS_ENABLED=TRUE
DEFAULT_TIMEZONE=Europe/Paris
# Switch to TRUE to maintain the unsecure URLs for ICS feeds
LEGACY_FEEDS=FALSE
# Enable public access for tabular and global calendar
# As the user won't choose the language of the web ui, please set <<language>>
PUBLIC_CALENDAR=FALSE
# Force spreadsheet export format. We strongly recommend XLSX format over Open Document Format.
# Please note that ods doesn't support all formatting/style options and is considered as experimental
# Supported formats: xlsx, ods
SPREADSHEET_FORMAT=xlsx
# Set this value to TRUE if you want to enable history of change (beware that it will impact the performance)
ENABLE_HISTORY=TRUE
# Set this value to TRUE if you want to enable the debug bar
DEBUGBAR_ENABLED=FALSE
DEBUGBAR_RENDER_IN_FOOTER=FALSE

# SAML configuration
SAML_ENABLED=FALSE
SAML_IDP_ENTITY_ID=http://localhost:8080/simplesaml/saml2/idp/metadata.php
SAML_IDP_SINGLE_SIGNON_SERVICE=http://localhost:8080/simplesaml/saml2/idp/SSOService.php
SAML_IDP_SINGLE_LOGOUT_SERVICE=http://localhost:8080/simplesaml/saml2/idp/SingleLogoutService.php
SAML_IDP_METADATA_URL=http://saml-idp:8080/simplesaml/saml2/idp/metadata.php
SAML_IDP_X509_CERT="-----BEGIN CERTIFICATE-----MIIDBzCCAe+gAwIBAgIUAZJgFNjBAqmoTsCWuahfLcE3vZswDQYJKoZIhvcNAQELBQAwEzERMA8GA1UEAwwIc2FtbC1pZHAwHhcNMjYwMzE1MTkyNTUyWhcNMzYwMzEyMTkyNTUyWjATMREwDwYDVQQDDAhzYW1sLWlkcDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL+TRL/ouTvya0GPI631oSyRBrwXPvuoT5Puet+H5auIrxxeZ0lxaBUw+ALIF2kEANMaZxPq/pLSwspy9wC3vkwrDuV8cWDAkY8rFXSOKdsQnJDffASxIftyRJfkHX9B2AANJNy/ppmvvkX8r2y7qzjKk5YCXHXl7M/nMo3H9Fu9jwG9sKqOc/nppIevY8NHqux2OL2y8LaVNxh73tGRIgmN/hO++rA2KAGN+9L9sGp3arQtoQBbcXKWlIPVk++aKISgK3xn9ZmRa2/jMAAqDbMZu27Usbifbf09LUBw/VUtl+iJIv+fc6kSMuPsGlpF8CMPICsIToHbFc2P5Jteyk8CAwEAAaNTMFEwHQYDVR0OBBYEFGjtfYcrXsAvLcgY/b5D7WHWSh8KMB8GA1UdIwQYMBaAFGjtfYcrXsAvLcgY/b5D7WHWSh8KMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAJc2vvL/Kh0E5NnL/xjNHElnJ6gpjP7/n0ACqUAf/hGjR8Jzi+grcHQZCIovah2eH8t92m2dCKrniQ7frKXNt7AIVXwFfNJm0wzx5OMH67wZHrmZjO0ZCHFk6mefA5tfogj9ZIGMhmAXgb+jNgRm1dkIIzS384ZxLwQ3ldzCAy0tjlgVEqLjzMVHk/dFDX4hCNmVyozocPT3iVB+l8odMiLy7tqYNTTDKE3V01geVxNGyPGXSEI8Uy3xiIaqHiCAihJcWdtCF4pjL8JIHKQMLFUcplyZH1tTV7YwFMvccM3DfrUbbuqOF3Pn/J33X4f0F1r2Modl2nJy2o8E2clBPOg=-----END CERTIFICATE-----"
# Please configure SAML advanced settings into legacy/config/saml.php

# API Configuration
API_ENABLED=TRUE
API_ACCESS_CONTROL_ALLOW_ORIGIN="*"
API_ACCESS_CONTROL_ALLOW_METHODS="GET, POST, PUT, DELETE, OPTIONS"
API_ACCESS_CONTROL_ALLOW_HEADERS="Content-Type, Content-Length, Accept-Encoding, Accept-Language"
API_ACCESS_CONTROL_MAX_AGE=86400
