Skip to content

Commit 50bad15

Browse files
committed
Resolved. GitLab Pages doesn't work since GitLab v14.0
ref. #2375 As I can see from the error message below, it looks like both `api-secret-key` and `gitlab-server` (or `internal-gitlab-server` ) are required since GitLab v14.0 ``` time="2021-06-28T02:28:34Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided" ``` https://gitlab.com/gitlab-org/gitlab-pages/-/blob/v1.41.0/internal/source/gitlab/client/client.go#L50-52
1 parent f2a36d2 commit 50bad15

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

assets/runtime/config/gitlab-pages/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ auth-redirect-uri={{GITLAB_PAGES_ACCESS_REDIRECT_URI}}
44
auth-secret={{GITLAB_PAGES_ACCESS_SECRET}}
55
gitlab-server={{GITLAB_PAGES_ACCESS_CONTROL_SERVER}}
66
artifacts-server={{GITLAB_PAGES_ARTIFACTS_SERVER_URL}}
7+
internal-gitlab-server=http://localhost:8181
8+
api-secret-key=/home/git/gitlab/.gitlab_pages_secret

assets/runtime/functions

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,12 @@ gitlab_configure_secrets() {
752752
exec_as_git openssl rand -base64 -out "${workhorse_secret}" 32
753753
chmod 600 "${workhorse_secret}"
754754
fi
755+
756+
local pages_secret="${GITLAB_INSTALL_DIR}/.gitlab_pages_secret"
757+
if [[ ! -f "${pages_secret}" ]]; then
758+
exec_as_git openssl rand -base64 -out "${pages_secret}" 32
759+
chmod 600 "${pages_secret}"
760+
fi
755761
}
756762

757763
gitlab_configure_sidekiq() {

0 commit comments

Comments
 (0)