웹후크 관리 Rake 작업

Tier: Free, Premium, Ultimate Offering: Self-managed

GitLab은 웹후크 관리를 위한 Rake 작업을 제공합니다.

관리자는 웹후크에 의해 로컬 네트워크로의 요청을 허용하거나 차단할 수 있습니다.

모든 프로젝트에 웹후크 추가

모든 프로젝트에 웹후크를 추가하려면 다음을 실행하세요:

# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"

# source installations
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production

특정 네임스페이스의 프로젝트에 웹후크 추가

특정 네임스페이스의 모든 프로젝트에 웹후크를 추가하려면 다음을 실행하세요:

# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=<namespace>

# source installations
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=<namespace> RAILS_ENV=production

프로젝트에서 웹후크 제거

모든 프로젝트에서 웹후크를 제거하려면 다음을 실행하세요:

# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"

# source installations
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production

특정 네임스페이스의 프로젝트에서 웹후크 제거

특정 네임스페이스의 프로젝트에서 웹후크를 제거하려면 다음을 실행하세요:

# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=<namespace>

# source installations
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=<namespace> RAILS_ENV=production

모든 웹후크 목록

모든 웹후크를 목록화하려면 다음을 실행하세요:

# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list

# source installations
bundle exec rake gitlab:web_hook:list RAILS_ENV=production

특정 네임스페이스의 프로젝트에 대한 웹후크 목록

지정된 네임스페이스의 프로젝트에 대한 모든 웹후크를 목록화하려면 다음을 실행하세요:

# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=<namespace>

# source installations
bundle exec rake gitlab:web_hook:list NAMESPACE=<namespace> RAILS_ENV=production