LoginSignup
2
2

More than 5 years have passed since last update.

gitlabでプロジェクトのvisibility levelをprivateのみにさせたい

Last updated at Posted at 2015-06-19

gitlab.ymlのrestricted_visibility_levelsを設定します。

Disable Public Projects

gitlab.yml
    # Restrict setting visibility levels for non-admin users.
    # The default is to allow all levels.
    restricted_visibility_levels:  [ "public", "internal" ]

注意点として選択できないvisibility levelを記載することです。
上記ではpublicとinternalを選択させない(結果としてprivateしか選択できない)
ようにする設定です。
また既存のpublic,internalなレポジトリの設定は変更されません。
あくまで変更時のみ有効です。

あとは

sudo gitlab-ctl restart

で設定を反映させます。

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