From 5190a0521e2c68c419e1e1a95e8372ca7f7cc42d Mon Sep 17 00:00:00 2001 From: Saulo Alexandre de Barros <31544944+DinoSaulo@users.noreply.github.com> Date: Mon, 3 Oct 2022 14:50:46 -0300 Subject: [PATCH 1/2] Updating the code / commands templates --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ceaa21f..7a0bae8 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ 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 @@ -63,12 +63,12 @@ curl -s -L https://github.com/globocom/gitlab-ci-monitor/archive/master.tar.gz | 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; From 31fbf494720854e4c2323533472ff12071fa0307 Mon Sep 17 00:00:00 2001 From: Saulo Alexandre de Barros <31544944+DinoSaulo@users.noreply.github.com> Date: Mon, 3 Oct 2022 14:54:29 -0300 Subject: [PATCH 2/2] Improoving README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a0bae8..f32e05c 100644 --- a/README.md +++ b/README.md @@ -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`