You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.5 KiB
68 lines
2.5 KiB
; {{ ansible_managed }}
|
|
|
|
[all]
|
|
logLevel = info
|
|
{% if llng_conf_backend == 'file' %}
|
|
globalStorage = Apache::Session::File
|
|
globalStorageOptions = { \
|
|
'Directory' => '/var/lib/lemonldap-ng/sessions/', \
|
|
'LockDirectory' => '/var/lib/lemonldap-ng/sessions/lock/', \
|
|
'generateModule' => 'Lemonldap::NG::Common::Apache::Session::Generate::SHA256' \
|
|
}
|
|
{% endif %}
|
|
localSessionStorage = Cache::FileCache
|
|
localSessionStorageOptions = { \
|
|
'namespace' => 'sessions', \
|
|
'default_expires_in' => '600', \
|
|
'directory_umask' => '007', \
|
|
'cache_root' => '/var/cache/lemonldap-ng', \
|
|
'cache_depth' => 3 \
|
|
}
|
|
|
|
[configuration]
|
|
{% if llng_conf_backend == 'file' %}
|
|
type = File
|
|
dirName = /var/lib/lemonldap-ng/conf
|
|
{% elif llng_conf_backend == 'api' %}
|
|
type = REST
|
|
baseUrl = {{ llng_api_uri }}
|
|
{% if llng_api_user is defined and llng_api_pass is defined %}
|
|
User = {{ llng_api_user }}
|
|
Password = {{ llng_api_pass }}
|
|
{% endif %}
|
|
proxyOptions = { timeout => 5 }
|
|
{% elif llng_conf_backend == 'mysql' %}
|
|
type = RDBI
|
|
dbiChain = DBI:mysql:database={{ llng_db_name }};host={{ llng_db_server }}
|
|
dbiUser = {{ (llng_manager or llng_portal) | ternary(llng_db_user,llng_handler_db_user) }}
|
|
dbiPassword = {{ (llng_manager or llng_portal) | ternary(llng_db_pass,llng_handler_db_pass) }}
|
|
{% endif %}
|
|
localStorage = Cache::FileCache
|
|
localStorageOptions = { \
|
|
'namespace' => 'config', \
|
|
'default_expires_in' => '600', \
|
|
'directory_umask' => '007', \
|
|
'cache_root' => '/var/cache/lemonldap-ng', \
|
|
'cache_depth' => 0 \
|
|
}
|
|
|
|
{% if llng_portal %}
|
|
[portal]
|
|
staticPrefix = /static
|
|
templateDir = /usr/share/lemonldap-ng/portal/templates
|
|
languages = fr, en, it, es, de
|
|
{% endif %}
|
|
|
|
{% if llng_manager %}
|
|
[manager]
|
|
protection = {{ llng_manager_protection }}
|
|
staticPrefix = /static
|
|
languages = fr, en, it, es, de
|
|
templateDir = /usr/share/lemonldap-ng/manager/htdocs/templates
|
|
enabledModules = conf, sessions, notifications, 2ndFA
|
|
{% endif %}
|
|
|
|
[handler]
|
|
https = 1
|
|
status = 0
|
|
hideSignature = 1
|
|
|