Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improoving README.md #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ of the default branch of all projects in groups group1, base/group2 and group3.
## Installation on a GitLab instance

* Download and unpack to a directory of your choice:
```
```sh
rm -rf /usr/local/share/gitlab/monitor
mkdir -p /usr/local/share/gitlab/monitor
curl -s -L https://github.com/globocom/gitlab-ci-monitor/archive/master.tar.gz | tar xz -C /usr/local/share/gitlab/monitor --strip-components=1
```

or

```
```sh
make install
```

* Now insert the following to your `/etc/gitlab/gitlab.rb` (the entry already exists but it commented):
```
```ruby
nginx['custom_gitlab_server_config'] = <<-NGINX_CONF
location /_internal/monitor/ {
index index.html;
Expand All @@ -77,7 +77,10 @@ nginx['custom_gitlab_server_config'] = <<-NGINX_CONF
}
NGINX_CONF
```
* Run `gitlab-ctl reconfigure`
* Run
```sh
gitlab-ctl reconfigure
```
* Now you may use the monitor without providing the parameter `gitlab` and set `token=use_cookie`


Expand Down