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?

More than 1 year has passed since last update.

セルフホストGitLabインスタンスでWebAuthnの登録に失敗するときの対処法

Posted at

症状

  • yubikeyなどセキュリティキーを設定しようとするとWebAuthn::OriginVerificationErrorになる
  • GitLabはリバースプロキシの後ろにある

原因

リバースプロキシ関係の設定が正しくない

対処法

/etc/gitlab/gitlab.rb の以下の行を以下のように書き換える

# example.comはGitLabインスタンスのURLに読み替える。httpではなくhttpsなので注意
external_url 'https://example.com'

nginx['listen_https'] = false
nginx['listen_port'] = 80
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?