From 5a5d5b1d0e2cfb5143173ec5843700e49635c478 Mon Sep 17 00:00:00 2001 From: Sematre Date: Sun, 17 Dec 2023 22:46:02 +0100 Subject: [PATCH] example_configs: Add GitLab --- README.md | 1 + example_configs/gitlab.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 example_configs/gitlab.md diff --git a/README.md b/README.md index 6dcec51..8084483 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,7 @@ folder for help with: - [Emby](example_configs/emby.md) - [Ergo IRCd](example_configs/ergo.md) - [Gitea](example_configs/gitea.md) +- [GitLab](example_configs/gitlab.md) - [Grafana](example_configs/grafana_ldap_config.toml) - [Hedgedoc](example_configs/hedgedoc.md) - [Jellyfin](example_configs/jellyfin.md) diff --git a/example_configs/gitlab.md b/example_configs/gitlab.md new file mode 100644 index 0000000..e1c7ea0 --- /dev/null +++ b/example_configs/gitlab.md @@ -0,0 +1,30 @@ +# GitLab Configuration + +Members of the group ``git_user`` will have access to GitLab. + +Edit ``/etc/gitlab/gitlab.rb``: + +```ruby +gitlab_rails['ldap_enabled'] = true +gitlab_rails['ldap_servers'] = { + 'main' => { + 'label' => 'LDAP', + 'host' => 'ldap.example.com', + 'port' => 3890, + 'uid' => 'uid', + 'base' => 'ou=people,dc=example,dc=com', + 'encryption' => 'plain', + 'bind_dn' => 'uid=bind_user,ou=people,dc=example,dc=com', + 'password' => '', + 'active_directory' => false, + 'user_filter' => '(&(objectclass=person)(memberof=cn=git_user,ou=groups,dc=example,dc=com))', + 'attributes' => { + 'username' => 'uid', + 'email' => 'mail', + 'name' => 'displayName', + 'first_name' => 'givenName', + 'last_name' => 'sn' + } + } +} +```