Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

前提

/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を実行しないと証明書が有効にならなかった

参考

sunack
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away