まずAWSだとスペック制限うけそうだったので手動でインストールする。
必要な依存関係モジュールはAWSの場合すでに全て入っているようなので割愛
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce-8.0.3-ce.1.el6.x86_64
sudo gitlab-ctl reconfigure
gitlabはnginxを内包してインストールされる。
起動はサービスで登録されているわけではないみたい。
以下が起動ファイルの設定。sysctl,initにあるからここで読んでいるのではないかと。
[root@git gitlab]# cd /etc/
[root@git etc]# find . | grep gitlab
./yum.repos.d/gitlab_gitlab-ce.repo
./sysctl.d/90-omnibus-gitlab.conf
./init/gitlab-runsvdir.conf
./gitlab
./gitlab/gitlab-secrets.json
./gitlab/gitlab.rb
おそらくデータは以下のフォルダ
/var/opt/gitlab/
nginxのコンフィグはおそらくこちら
/var/opt/gitlab/nginx/conf/gitlab-http.conf
※Authかけたい時等
auth_basic "Restricted";
auth_basic_user_file /opt/gitlab/.htpasswd;
location / {
## Serve static files from defined root folder.
## @gitlab is a named location for the upstream fallback, see below.
auth_basic "Restricted";
auth_basic_user_file /opt/gitlab/.htpasswd;
try_files $uri $uri/index.html $uri.html @gitlab;
}
エラーがでる。NotFound系結果はシンボリックリンクデータ部に使用しているとだめらしい。これのせいで悩んだ・・・
おれおれ証明書をOKにする場合
git config --global http.sslverify false
無事完成です。