From fe3f724449a5c77f8bc113d972842434337d658d Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Sat, 10 Feb 2024 17:27:05 +0100 Subject: [PATCH] gitlab: Enable domain-level redirects feature flag for Pages This feature is needed for the static copy of bugs.a.o[2], to redirect some of the migrated tasks to the new gitlab URLs. [1] https://docs.gitlab.com/ee/user/project/pages/redirects.html#domain-level-redirects [2] https://gitlab.archlinux.org/archlinux/bugs-archive/-/blob/snapshots/_redirects --- roles/gitlab/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/gitlab/tasks/main.yml b/roles/gitlab/tasks/main.yml index 55cefd8d0..52d8a6f96 100644 --- a/roles/gitlab/tasks/main.yml +++ b/roles/gitlab/tasks/main.yml @@ -43,7 +43,7 @@ gitlab_pages['external_https'] = {{ gitlab_pages_https_addresses }} gitlab_pages['rate_limit_source_ip'] = 10.0 gitlab_pages['rate_limit_source_ip_burst'] = 300 - gitlab_pages['env'] = { 'FF_ENFORCE_IP_RATE_LIMITS' => 'true', 'FF_CONFIGURABLE_ROOT_DIR' => 'true' } + gitlab_pages['env'] = { 'FF_ENFORCE_IP_RATE_LIMITS' => 'true', 'FF_CONFIGURABLE_ROOT_DIR' => 'true', 'FF_ENABLE_DOMAIN_REDIRECT' => 'true' } letsencrypt['enable'] = true letsencrypt['contact_emails'] = ['webmaster@archlinux.org'] gitlab_rails['env'] = {'GITLAB_THROTTLE_BYPASS_HEADER' => 'Gitlab-Bypass-Rate-Limiting'} -- GitLab