forked from Deuxfleurs/guichet
bridged Guichet (built directly with Go) with the integration docker-compose
This commit is contained in:
parent
9eaa4c068d
commit
5fb0139a3f
4 changed files with 44 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ guichet.static
|
||||||
config.json
|
config.json
|
||||||
result
|
result
|
||||||
.direnv/
|
.direnv/
|
||||||
|
password
|
||||||
|
|
|
@ -9,3 +9,8 @@ On ne met pas Guichet dans le `compose` pour pouvoir itérer plus rapidement : u
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
* Bien récupérer le password `admin` dans les logs de 1er lancement de Bottin : il ne sera pas réaffiché.
|
* Bien récupérer le password `admin` dans les logs de 1er lancement de Bottin : il ne sera pas réaffiché.
|
||||||
|
* Identifiant de l'admin sur Guichet : `cn=admin,dc=bottin,dc=eu` because il n'est pas dans `ou=users,dc=bottin,dc=eu` qui est l'organisation par défaut dans laquelle on va chercher les utilisateurs.
|
||||||
|
|
||||||
|
## TODO
|
||||||
|
|
||||||
|
* Bridger Garage/S3 (pour le moment ne sert que pour les avatars dans l'annuaire)
|
34
integration/config/guichet.json
Normal file
34
integration/config/guichet.json
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
"http_bind_addr": ":9991",
|
||||||
|
"ldap_server_addr": "ldap://127.0.0.1:389",
|
||||||
|
|
||||||
|
"base_dn": "dc=bottin,dc=eu",
|
||||||
|
"user_base_dn": "ou=users,dc=bottin,dc=eu",
|
||||||
|
"user_name_attr": "cn",
|
||||||
|
"group_base_dn": "ou=groups,dc=bottin,dc=eu",
|
||||||
|
"group_name_attr": "cn",
|
||||||
|
|
||||||
|
"invitation_base_dn": "ou=invitations,dc=bottin,dc=eu",
|
||||||
|
"invitation_name_attr": "cn",
|
||||||
|
"invited_mail_format": "{}@bottin.eu",
|
||||||
|
"invited_auto_groups": [
|
||||||
|
"cn=email,ou=groups,dc=bottin,dc=eu"
|
||||||
|
],
|
||||||
|
|
||||||
|
"web_address": "https://guichet.bottin.eu",
|
||||||
|
"mail_from": "welcome@bottin.eu",
|
||||||
|
"smtp_server": "smtp.bottin.eu",
|
||||||
|
"smtp_username": "guichet",
|
||||||
|
"smtp_password": "",
|
||||||
|
|
||||||
|
"admin_account": "cn=admin,dc=bottin,dc=eu",
|
||||||
|
"group_can_admin": "gid=admin,ou=groups,dc=bottin,dc=eu",
|
||||||
|
"group_can_invite": "",
|
||||||
|
|
||||||
|
"s3_endpoint": "garage.bottin.eu",
|
||||||
|
"s3_access_key": "",
|
||||||
|
"s3_secret_key": "",
|
||||||
|
"s3_region": "garage",
|
||||||
|
"s3_bucket": "bottin-pictures"
|
||||||
|
}
|
||||||
|
|
|
@ -4,13 +4,13 @@ services:
|
||||||
image: consul
|
image: consul
|
||||||
restart: "always"
|
restart: "always"
|
||||||
expose:
|
expose:
|
||||||
- "8500"
|
- 8500
|
||||||
bottin:
|
bottin:
|
||||||
image: dxflrs/bottin:dnp41vp8w24h4mbh0xg1mybzr1f46k41
|
image: dxflrs/bottin:dnp41vp8w24h4mbh0xg1mybzr1f46k41
|
||||||
command: "-config /etc/bottin.json"
|
command: "-config /etc/bottin.json"
|
||||||
restart: "always"
|
restart: "always"
|
||||||
depends_on: ["consul"]
|
depends_on: ["consul"]
|
||||||
expose:
|
ports:
|
||||||
- 389
|
- "389:389"
|
||||||
volumes:
|
volumes:
|
||||||
- "./config/bottin.json:/etc/bottin.json"
|
- "./config/bottin.json:/etc/bottin.json"
|
||||||
|
|
Loading…
Reference in a new issue