LoginSignup
1
2

More than 5 years have passed since last update.

Gitlab CEでLet's Encryptの証明書を使ってHTTPS通信を有効にする

Posted at

前提

/etc/letsencrypt/live/の下にLet's Encryptで生成した証明書が存在すること。

方法

bash
sudo vi /etc/gitlab/gitlab.rb
/etc/gitlab/gitlab.rb
external_url 'https://<your FQDN>'

nginx['redirect_http_to_https']      = true
nginx['ssl_certificate']             = "/etc/letsencrypt/live/<your FQDN>/fullchain.pem"
nginx['ssl_certificate_key']         = "/etc/letsencrypt/live/<your FQDN>/privkey.pem"

bash
sudo gitlab-ctl reconfigure

注: 少し時間を置くか、2回reconfigureを実行しないと証明書が有効にならなかった

参考

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2