This commit is contained in:
2023-11-13 16:40:30 +01:00
parent 3a25b38d29
commit 021dcbd10c
53 changed files with 361 additions and 142 deletions

View File

@ -1,7 +1,6 @@
#-- LOCAL
#-- LOCAL ---------------------------------------------------------------------------------------------------------------------------------
NEXTCLOUD_ACTIVATE=1
NEXTCLOUD_ALIAS=/nextcloud
NEXTCLOUD_URL=${WEB_PROTOCOL}://${WEB_URL}/nextcloud
NEXTCLOUD_URL=${PROTOCOLE}://${WEB_URL}/nextcloud
NEXTCLOUD_SAMBA=%%getBool(%%getVar("nextcloud_samba", "non"))

View File

@ -0,0 +1,27 @@
[
{
"mount_id": 1,
"mount_point": "\/Envole",
"storage": "\\OCA\\Files_External\\Lib\\Storage\\SMB",
"authentication_type": "password::userprovided",
"configuration": {
"check_acl": true,
"domain": "%%getVar('nextcloud_samba_domaine','')",
"host": "%%getVar('nextcloud_samba_host','')",
"root": "",
"share": "%%getVar('nextcloud_samba_name','')",
"show_hidden": false,
"timeout": ""
},
"options": {
"enable_sharing": false,
"encoding_compatibility": false,
"encrypt": true,
"filesystem_check_changes": 1,
"previews": true,
"readonly": false
},
"applicable_users": [],
"applicable_groups": []
}
]

6
tmpl/envole-ninegate.env Normal file
View File

@ -0,0 +1,6 @@
#-- LOCAL ---------------------------------------------------------------------------------------------------------------------------------
ALIAS=ninegate/
FORCE_THEME=%%getBool(%%getVar("ninegate_forcetheme", "non"))
FORCE_THEMENAME=%%getVar("ninegate_forcethemename", "")

View File

@ -1,7 +1,7 @@
#-- LOCAL
PHPLDAPADMIN_ACTIVATE=1
PHPLDAPADMIN_LDAP_HOSTS=ldap://${LDAP_HOST}:${LDAP_PORT}
PHPLDAPADMIN_URL=/phpldapadmin
PHPLDAPADMIN_SERVER_PATH=${PHPLDAPADMIN_URL}

View File

@ -435,16 +435,16 @@
"id": "133d3397-41e7-4ec1-aaf0-a0939da72f58",
"clientId": "envole",
"name": "envole",
"rootUrl": "https://eolebase.ac-test.fr",
"baseUrl": "https://eolebase.ac-test.fr",
"rootUrl": "https://%%getVar("web_url", 'localhost')",
"baseUrl": "https://%%getVar("web_url", 'localhost')",
"surrogateAuthRequired": false,
"enabled": true,
"alwaysDisplayInConsole": false,
"clientAuthenticatorType": "client-secret",
"secret": "**********",
"redirectUris": [
"http://eolebase.ac-test.fr*",
"https://eolebase.ac-test.fr*"
"http://%%getVar("web_url", 'localhost')*",
"https://%%getVar("web_url", 'localhost')*"
],
"webOrigins": [],
"notBefore": 0,
@ -1594,7 +1594,7 @@
"true"
],
"usersDn": [
"ou=users,ou=ninegate,dc=envole,dc=org"
"%%getVar("openldap_basedn", 'dc=envole,dc=org')"
],
"cachePolicy": [
"DEFAULT"
@ -1612,13 +1612,13 @@
"uid"
],
"bindCredential": [
"changeme"
"%%getVar("openldap_password", '')"
],
"changedSyncPeriod": [
"-1"
],
"bindDn": [
"cn=admin,dc=envole,dc=org"
"cn=%%getVar("openldap_user", 'admin'),%%getVar("openldap_basedn", 'dc=envole,dc=org')"
],
"lastSync": [
"1698698495"
@ -1630,7 +1630,7 @@
"entryUUID"
],
"connectionUrl": [
"ldap://openldap:1389"
"ldap://%%getVar("openldap_host", 'openldap'):%%getVar("openldap_port", '1389')"
],
"allowKerberosAuthentication": [
"false"
@ -1645,7 +1645,7 @@
"false"
],
"searchScope": [
"1"
"2"
],
"useTruststoreSpi": [
"ldapsOnly"

View File

@ -4,19 +4,19 @@
# GLOBAL
RELEASE_SYSTEM=eole
WEB_URL=%%getVar('web_url','')
WEB_PROTOCOL=https
PROTOCOLE=https
MASTERIDENTITY=%%getVar('envole_masteridentity','')
MODE_AUTH=%%getVar('envole_modeauth','')
# ANNUAIRE
LDAP_ACTIVATE=%%getBool(%%getVar("activer_openldap", "non"))
LDAP_LOCAL=%%getBool(%%getVar("openldap_local", "non"))
LDAP_HOST=%%getVar("openldap_host", '')
LDAP_PORT=%%getVar("openldap_port", '')
LDAP_HOST=%%getVar("openldap_host", 'openldap')
LDAP_PORT=%%getVar("openldap_port", '1389')
LDAP_TLS=%%getBool(%%getVar("openldap_tls", "non"))
LDAP_BASEDN="%%getVar("openldap_basedn", '')"
LDAP_ADMIN_USERNAME=%%getVar("openldap_user", '')
LDAP_USER="cn=%%getVar("openldap_user", ''),%%getVar("openldap_basedn", '')"
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')"
LDAP_PASSWORD="%%getVar("openldap_password", '')"
# SYNCHRONISATION ANNUAIRE<>NINEGATE
@ -43,16 +43,17 @@ LDAP_BASEGROUP="%%getVar(%%ninegate_openldapsubbranchgroup,%%getVar(%%ldap_base_
%end if
# CAS
%if %%getVar("MODE_AUTH", '') == "CAS"
%if %%getVar("envole_modeauth", '') == "CAS"
CAS_ACTIVATE=1
%else
CAS_ACTIVATE=0
%end if
CAS_LOCAL=%%getBool(%%getVar("cas_local", "non"))
CAS_HOST=%%getVar("cas_host", "")
CAS_PORT=%%getVar("cas_port", "")
CAS_PATH=%%getVar("cas_path", "")
CAS_URL=https://%%getVar("cas_host", ""):%%getVar("cas_port", "")
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", "")
# NINEGATE
NINEGATE_ACTIVATE=%%getBool(%%getVar("activer_ninegate", "non"))
@ -72,3 +73,7 @@ ADMINER_URL=/adminer/?server=${MARIADB_SERVICE_NAME}&username=${MARIADB_USER}
PHPLDAPADMIN_ACTIVATE=%%getBool(%%getVar("activer_phpldapadmin", "non"))
PHPLDAPADMIN_LOCAL=1
PHPLDAPADMIN_URL=/phpldapadmin
# GENCONFIG
GENCONFIG_ACTIVATE=%%getBool(%%getVar("activer_genconfig", "non"))
GENCONFIG_URL=/genconfig