diff --git a/example_configs/README.md b/example_configs/README.md index 2e20019..fcbe876 100644 --- a/example_configs/README.md +++ b/example_configs/README.md @@ -61,6 +61,7 @@ configuration files: - [Radicale](radicale.md) - [Rancher](rancher.md) - [Seafile](seafile.md) +- [Semaphore](semaphore.md) - [Shaarli](shaarli.md) - [Snipe-IT](snipe-it.md) - [SonarQube](sonarqube.md) diff --git a/example_configs/semaphore.md b/example_configs/semaphore.md new file mode 100644 index 0000000..ea22ef6 --- /dev/null +++ b/example_configs/semaphore.md @@ -0,0 +1,37 @@ +# Configuration for Semaphore + +Semaphore configuration is in `config.json` + +Just add the following lines: +```json + "ldap_enable": true, + "ldap_needtls": true, + "ldap_server": "ldaps_server:6360", + "ldap_binddn": "uid=semaphorebind,ou=people,dc=example,dc=com", + "ldap_bindpassword": "verysecretpassword", + "ldap_searchdn": "ou=people,dc=example,dc=com", + "ldap_searchfilter": "(|(uid=%[1]s)(mail=%[1]s))", + "ldap_mappings": { + "dn": "dn", + "mail": "mail", + "uid": "uid", + "cn": "cn" + } +``` + +If you use environment variables: +```bash +Environment=SEMAPHORE_LDAP_ENABLE=true +Environment=SEMAPHORE_LDAP_SERVER="ldaps_server:6360" +Environment=SEMAPHORE_LDAP_NEEDTLS=true +Environment=SEMAPHORE_LDAP_BIND_DN="uid=semaphorebind,ou=people,dc=example,dc=com" +Environment=SEMAPHORE_LDAP_BIND_PASSWORD="verysecretpassword" +Environment=SEMAPHORE_LDAP_SEARCH_DN="ou=people,dc=example,dc=com" +Environment=SEMAPHORE_LDAP_SEARCH_FILTER="(|(uid=%[1]s)(mail=%[1]s))" +Environment=SEMAPHORE_LDAP_MAPPING_UID="uid" +Environment=SEMAPHORE_LDAP_MAPPING_CN="cn" +Environment=SEMAPHORE_LDAP_MAPPING_MAIL="mail" +Environment=SEMAPHORE_LDAP_MAPPING_DN="dn" +``` + +You can log in with username or email.