2020-04-30 21:43:07 +08:00
|
|
|
# Docker compose parameters for Mattermost-LDAP
|
|
|
|
#
|
|
|
|
# Adapt these parameters to match with your configuration.
|
|
|
|
# More information available in section "Configuration" in README.md
|
|
|
|
|
|
|
|
#
|
|
|
|
# Oauth client configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
# Client ID token. Must be a random hex value. Use `openssl rand -hex 32` to generate a token.
|
2020-05-02 03:22:34 +08:00
|
|
|
client_id = "123456789abcdef123456789abcdef"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# Client Secret token. Must be a random hex value. Use `openssl rand -hex 32` to generate a token.
|
2020-05-02 03:22:34 +08:00
|
|
|
client_secret = "fedcba987654321fedcba987654321"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# Redirect URI use by Oauth server to redirect user after authentifictaion process. Must be the same than as Mattermost give to Oauth server.
|
|
|
|
redirect_uri = "http://localhost/signup/gitlab/complete"
|
|
|
|
|
|
|
|
# Grant types method uses by Oauth server
|
|
|
|
grant_types = "authorization_code"
|
|
|
|
|
|
|
|
# Scope of the client in the Oauth server
|
|
|
|
scope = "api"
|
|
|
|
|
|
|
|
# Non important parameter. Could be used as a commentary field
|
|
|
|
user_id = ""
|
|
|
|
|
|
|
|
#
|
|
|
|
# Database configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
# Username for the PostgreSQL administrator account
|
2020-05-02 03:22:34 +08:00
|
|
|
POSTGRES_USER = "postgres"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# Password for PostgreSQL administrator account
|
2020-05-02 03:22:34 +08:00
|
|
|
POSTGRES_PASSWORD = "rootroot"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# Method to use for connection to database
|
2020-05-02 03:22:34 +08:00
|
|
|
POSTGRES_HOST_AUTH_METHOD = "trust"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# Oauth user to connect the database
|
|
|
|
db_user = "oauth"
|
|
|
|
|
|
|
|
# Oauth password to connect the database
|
|
|
|
db_pass = "oauth_secure-pass"
|
|
|
|
|
|
|
|
# Oauth database name
|
|
|
|
db_name = "oauth_db"
|
|
|
|
|
|
|
|
# PostgreSQL database host
|
|
|
|
db_host = "127.0.0.1"
|
|
|
|
|
|
|
|
# PostgreSQL database port
|
|
|
|
db_port = "5432"
|
|
|
|
|
|
|
|
# Database type. Docker compose implementation for Mattermost-LDAP uses PostgreSQL.
|
|
|
|
db_type = "pgsql"
|
|
|
|
|
|
|
|
#
|
|
|
|
# LDAP configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
# LDAP host or IP
|
2020-05-02 03:22:34 +08:00
|
|
|
ldap_host = "ldap://ldap.company.com:389/"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# LDAP port
|
2020-05-02 03:22:34 +08:00
|
|
|
ldap_port = "389"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# LDAP protocol version
|
2020-05-02 03:22:34 +08:00
|
|
|
ldap_version = "3"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# Unique identifier for entry in LDAP
|
2020-05-02 03:22:34 +08:00
|
|
|
ldap_search_attribute = "uid"
|
2020-04-30 21:43:07 +08:00
|
|
|
|
|
|
|
# Base DN to search from in LDAP
|
|
|
|
ldap_base_dn = "ou=People,o=Company"
|
|
|
|
|
|
|
|
# Additional filter for LDAP search
|
|
|
|
ldap_filter = "(objectClass=*)"
|
|
|
|
|
|
|
|
# Service account to bind LDAP server
|
|
|
|
ldap_bind_dn = ""
|
|
|
|
|
|
|
|
# Password for service account to bind LDAP server
|
|
|
|
ldap_bind_pass = ""
|