0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitLab 19.2以降で nginx['ssl_certificate'] が非推奨に

0
Posted at

GitLab 19.2以降で SSL 証明書設定の指定方法が変更されました

GitLab 19.2 以降では、GitLab Rails 用の NGINX 設定が nginx[] 配下から gitlab_rails['nginx'][] 配下へ移行されました。従来の設定は引き続き利用可能ですが、gitlab-ctl reconfigure 実行時に非推奨 (deprecated) 警告が表示されます。将来のバージョンへのアップグレードを考慮し、早めに設定を移行しておくことを推奨します。

以下のようなメッセージが表示された場合は、設定の移行を検討してください。

nginx['ssl_certificate'] has been deprecated.
Please use gitlab_rails['nginx']['ssl_certificate'] instead.
nginx['ssl_certificate_key'] has been deprecated.
Please use gitlab_rails['nginx']['ssl_certificate_key'] instead

変更前:

nginx['ssl_certificate'] = '/etc/gitlab/ssl/gitlab.example.com.crt'
nginx['ssl_certificate_key'] = '/etc/gitlab/ssl/gitlab.example.com.key'

変更後:

gitlab_rails['nginx']['ssl_certificate'] = '/etc/gitlab/ssl/gitlab.example.com.crt'
gitlab_rails['nginx']['ssl_certificate_key'] = '/etc/gitlab/ssl/gitlab.example.com.key'

設定変更後は以下を実行します。

sudo gitlab-ctl reconfigure

まとめ

今回は動作影響のない非推奨警告でしたが、GitLab のアップグレードではアプリケーション本体だけでなく設定項目の変更にも注意が必要であることを再認識しました。既存環境はそのまま利用できますが、将来的な設定廃止に備えて早めの設定移行を検討することをおすすめします。

参考情報

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?