mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
configs: pick the base gitlab-shell config from setup/config/gitlab-shell/config.yml
This commit is contained in:
parent
b7e35fb67f
commit
407030b2d9
41
resources/setup/config/gitlab-shell/config.yml
Normal file
41
resources/setup/config/gitlab-shell/config.yml
Normal file
@ -0,0 +1,41 @@
|
||||
# GitLab user. git by default
|
||||
user: git
|
||||
|
||||
# Url to gitlab instance. Used for api calls. Should end with a slash.
|
||||
gitlab_url: "http://localhost/"
|
||||
|
||||
http_settings:
|
||||
# user: someone
|
||||
# password: somepass
|
||||
# ca_file: /etc/ssl/cert.pem
|
||||
# ca_path: /etc/pki/tls/certs
|
||||
self_signed_cert: false
|
||||
|
||||
# Repositories path
|
||||
# Give the canonicalized absolute pathname,
|
||||
# REPOS_PATH MUST NOT CONTAIN ANY SYMLINK!!!
|
||||
# Check twice that none of the components is a symlink, including "/home".
|
||||
repos_path: "/home/git/repositories"
|
||||
|
||||
# File used as authorized_keys for gitlab user
|
||||
auth_file: "/home/git/.ssh/authorized_keys"
|
||||
|
||||
# Redis settings used for pushing commit notices to gitlab
|
||||
redis:
|
||||
bin: /usr/bin/redis-cli
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
# socket: /tmp/redis.socket # Only define this if you want to use sockets
|
||||
namespace: resque:gitlab
|
||||
|
||||
# Log file.
|
||||
# Default is gitlab-shell.log in the root directory.
|
||||
# log_file: "/home/git/gitlab-shell/gitlab-shell.log"
|
||||
|
||||
# Log level. INFO by default
|
||||
log_level: INFO
|
||||
|
||||
# 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: false
|
||||
@ -18,7 +18,7 @@ wget "https://github.com/gitlabhq/gitlab-shell/archive/v1.8.0.tar.gz" -O - | tar
|
||||
chown -R git:git /home/git/gitlab-shell/
|
||||
|
||||
cd /home/git/gitlab-shell
|
||||
sudo -u git -H cp -a config.yml.example config.yml
|
||||
sudo -u git -H cp -a /gitlab/setup/config/gitlab-shell/config.yml config.yml
|
||||
sudo -u git -H sed 's/repos_path: "\/home\/git\/repositories"/repos_path: "\/home\/git\/data\/repositories"/' -i config.yml
|
||||
sudo -u git -H ./bin/install
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user