envole/tmpl/envole.env

80 lines
3.1 KiB
Bash
Raw Normal View History

2023-11-09 13:46:26 +01:00
2023-11-10 11:33:16 +01:00
#-- LOCAL ---------------------------------------------------------------------------------------------------------------------------------
2023-11-09 13:46:26 +01:00
2023-11-10 11:33:16 +01:00
# GLOBAL
2023-11-09 13:46:26 +01:00
RELEASE_SYSTEM=eole
2023-11-10 11:33:16 +01:00
WEB_URL=%%getVar('web_url','')
2023-11-13 16:40:30 +01:00
PROTOCOLE=https
2023-11-10 11:33:16 +01:00
MASTERIDENTITY=%%getVar('envole_masteridentity','')
MODE_AUTH=%%getVar('envole_modeauth','')
2023-11-09 13:46:26 +01:00
2023-11-10 11:33:16 +01:00
# ANNUAIRE
LDAP_ACTIVATE=%%getBool(%%getVar("activer_openldap", "non"))
LDAP_LOCAL=%%getBool(%%getVar("openldap_local", "non"))
2023-11-13 16:40:30 +01:00
LDAP_HOST=%%getVar("openldap_host", 'openldap')
LDAP_PORT=%%getVar("openldap_port", '1389')
2023-11-10 11:33:16 +01:00
LDAP_TLS=%%getBool(%%getVar("openldap_tls", "non"))
2023-11-13 16:40:30 +01:00
LDAP_BASEDN="%%getVar("openldap_basedn", 'dc=envole,dc=org')"
LDAP_ADMIN_USERNAME=%%getVar("openldap_user", 'admin')
LDAP_USER="cn=%%getVar("openldap_user", 'admin'),%%getVar("openldap_basedn", 'dc=envole,dc=org')"
2023-11-10 11:33:16 +01:00
LDAP_PASSWORD="%%getVar("openldap_password", '')"
2023-11-09 13:46:26 +01:00
2023-11-10 11:33:16 +01:00
# SYNCHRONISATION ANNUAIRE<>NINEGATE
LDAP_SYNC=%%getBool(%%getVar("ninegate_syncldap", "non"))
%if %%getVar("ninegate_syncldap", "non") == "non"
LDAP_TEMPLATE=%%getVar("openldap_ldaptemplate", '')
%if %%getVar("openldap_ldaptemplate", '') == "scribe"
SCRIBE_GROUP=%%getBool(%%getVar("ninegate_scribegroup", "non"))
SCRIBE_MASTER=%%getBool(%%getVar("ninegate_scribemaster", "non"))
LDAP_BASEUSER="%%getVar("openldap_basedn","")"
LDAP_BASENIVEAU01="%%getVar("openldap_basedn","")"
LDAP_BASENIVEAU02="%%getVar("openldap_basedn","")"
LDAP_BASEGROUP="%%getVar("openldap_basedn","")"
%end if
%if %%getVar("openldap_ldaptemplate", '') == "open"
OPENLDAPREQNIVEAU01=%%getVar("ninegate_openldapreqniveau01","")
OPENLDAPSYNCHROGROUP=%%getBool(%%getVar("ninegate_openldapsynchrogroup", "non"))
OPENLDAPREQGROUP=%%getVar(%%ninegate_openldapreqgroup,"")
LDAP_BASENIVEAU01="%%ldap_base_dn"
LDAP_BASENIVEAU02="%%ldap_base_dn"
LDAP_BASEUSER="%%getVar(%%ninegate_openldapsubbranchuser,%%getVar(%%ldap_base_dn,""))"
LDAP_BASEGROUP="%%getVar(%%ninegate_openldapsubbranchgroup,%%getVar(%%ldap_base_dn,""))"
%end if
%end if
2023-11-09 13:46:26 +01:00
2023-11-10 11:33:16 +01:00
# CAS
2023-11-13 16:40:30 +01:00
%if %%getVar("envole_modeauth", '') == "CAS"
2023-11-09 13:46:26 +01:00
CAS_ACTIVATE=1
2023-11-10 11:33:16 +01:00
%else
CAS_ACTIVATE=0
%end if
CAS_LOCAL=%%getBool(%%getVar("cas_local", "non"))
2023-11-13 16:40:30 +01:00
CAS_HOST=%%getVar("cas_host", %%getVar("web_url"))
CAS_PORT=%%getVar("cas_port", "8443")
CAS_PATH=%%getVar("cas_path", "/auth/realms/envole/protocol/cas")
CAS_URL=https://%%getVar("cas_host", %%getVar("web_url")):%%getVar("cas_port", "8443")
CAS_PASSWORD=%%getVar("keycload_userpassword", "")
2023-11-09 13:46:26 +01:00
2023-11-10 11:33:16 +01:00
# NINEGATE
NINEGATE_ACTIVATE=%%getBool(%%getVar("activer_ninegate", "non"))
2023-11-09 13:46:26 +01:00
NINEGATE_URL=/ninegate
2023-11-10 11:33:16 +01:00
# NEXTCLOUD
NEXTCLOUD_ACTIVATE=%%getBool(%%getVar("activer_nextcloud", "non"))
NEXTCLOUD_LOCAL=%%getBool(%%getVar("nextcloud_local", "non"))
NEXTCLOUD_URL=%%getVar("nextcloud_url", "/nextcloud")
2023-11-09 13:46:26 +01:00
2023-11-10 11:33:16 +01:00
# ADMINER
ADMINER_ACTIVATE=%%getBool(%%getVar("activer_adminer", "non"))
ADMINER_LOCAL=1
2023-11-15 11:48:03 +01:00
ADMINER_URL="${PROTOCOLE}://${WEB_URL}/adminer/?server=${MARIADB_SERVICE_NAME}&username=${MARIADB_USER}"
2023-11-09 13:46:26 +01:00
2023-11-10 11:33:16 +01:00
# PHPLDAPADMIN
PHPLDAPADMIN_ACTIVATE=%%getBool(%%getVar("activer_phpldapadmin", "non"))
PHPLDAPADMIN_LOCAL=1
PHPLDAPADMIN_URL=/phpldapadmin
2023-11-13 16:40:30 +01:00
# GENCONFIG
GENCONFIG_ACTIVATE=%%getBool(%%getVar("activer_genconfig", "non"))
GENCONFIG_URL=/genconfig