36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
GITLAB_OMNIBUS_CONFIG="
|
|
external_url 'https://git.nstart.local'
|
|
nginx['listen_port'] = 8081
|
|
nginx['listen_https'] = false
|
|
gitlab_rails['gitlab_host'] = 'git.nstart.local'
|
|
gitlab_rails['gitlab_port'] = 443
|
|
gitlab_rails['gitlab_https'] = true
|
|
gitlab_rails['omniauth_enabled'] = true
|
|
gitlab_rails['omniauth_allow_single_sign_on'] = true
|
|
gitlab_rails['omniauth_auto_sing_in_with_provider'] = 'openid_connect'
|
|
gitlab_rails['omniauth_block_auto_created_users'] = false
|
|
gitlab_rails['omniauth_auto_link_ldap_user'] = false
|
|
gitlab_rails['omniauth_auto_link_user'] = ['openid_connect']
|
|
gitlab_rails['gitlab_ssh_host'] = 'git.nstart.local'
|
|
gitlab_rails['omniauth_providers'] = [{
|
|
name: 'openid_connect',
|
|
label: 'Новый Старт ID',
|
|
args: {
|
|
name: 'openid_connect',
|
|
scope: %w[openid profile email],
|
|
response_type: 'code',
|
|
issuer: 'https://auth.nstart.space/realms/nstart',
|
|
discovery: true,
|
|
client_auth_method: 'basic',
|
|
uid_field: 'preferred_username',
|
|
pkce: false,
|
|
client_options: {
|
|
identifier: 'gitlab',
|
|
secret: '',
|
|
redirect_uri: 'https://git.nstart.local/users/auth/openid_connect/callback',
|
|
}
|
|
}
|
|
}]
|
|
|
|
"
|