files/gitlab-cookbooks/gitlab/templates/default/gitlab-shell-config.yml.erb (55 lines of code) (raw):
# This file is managed by gitlab-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# and run `sudo gitlab-ctl reconfigure`.
# GitLab user. git by default
user: <%= @user %>
# Url to gitlab instance. Used for api calls. May but need not end with a slash.
gitlab_url: "<%= @gitlab_url %>"
<% if @gitlab_relative_path %>
gitlab_relative_url_root: <%= @gitlab_relative_path %>
<% end %>
# File that contains the secret key for verifying access to GitLab.
# Default is .gitlab_shell_secret in the gitlab-shell directory.
secret_file: "<%= @secret_file %>"
http_settings:
<%= @http_settings.to_json if @http_settings %>
# user: someone
# password: somepass
# ca_file: /etc/ssl/cert.pem
# ca_path: /etc/pki/tls/certs
# File used as authorized_keys for gitlab user
auth_file: "<%= @authorized_keys %>"
# SSL certificate dir where custom certificates can be placed
# https://golang.org/pkg/crypto/x509/
ssl_cert_dir: "<%= @ssl_cert_dir %>"
# Log file.
# Default is gitlab-shell.log in the root directory.
log_file: "<%= @log_file %>"
# Log level. INFO by default
log_level: <%= @log_level %>
<% if @log_format %>
log_format: <%= @log_format %>
<% end %>
# Audit usernames.
# Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but
# incurs an extra API call on every gitlab-shell command.
audit_usernames: <%= @audit_usernames %>
<% if @git_trace_log_file %>
# Git trace log file.
# If set, git commands receive GIT_TRACE* environment variables
# See https://git-scm.com/book/es/v2/Git-Internals-Environment-Variables#Debugging for documentation
# An absolute path starting with / – the trace output will be appended to that file.
# It needs to exist so we can check permissions and avoid to throwing warnings to the users.
git_trace_log_file: "<%= @git_trace_log_file %>"
<% end %>
<% if @gitlab_sshd %>
sshd: <%= @gitlab_sshd.to_json %>
<% end %>
<%- if @lfs_pure_ssh_protocol -%>
lfs:
pure_ssh_protocol: <%= @lfs_pure_ssh_protocol %>
<%- end -%>
<%- if @pat -%>
pat:
<%= @pat.to_json %>
<% end %>