-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Please support pages namespace_in_path #2923
Comments
This feature is now out of experimental and made it into GA in 17.4. Updoot for letting us set it. |
Here is a first cut on the settings. I couldn't make it work so far (up to 17.3). Still working on it before creating a PR. diff --git a/assets/runtime/config/gitlabhq/gitlab.yml b/assets/runtime/config/gitlabhq/gitlab.yml
diff --git a/assets/runtime/env-defaults b/assets/runtime/env-defaults GitalyGITALY_CLIENT_PATH=${GITALY_CLIENT_PATH:-$GITLAB_GITALY_INSTALL_DIR}
if [[ -n ${GITLAB_PAGES_EXTERNAL_HTTP} ]]; then |
index 14e0ccc1..c5c3c687 100644
--- a/assets/runtime/env-defaults
+++ b/assets/runtime/env-defaults
@@ -617,6 +617,8 @@ GITLAB_PAGES_ACCESS_CLIENT_ID=${GITLAB_PAGES_ACCESS_CLIENT_ID:-}
GITLAB_PAGES_ACCESS_CLIENT_SECRET=${GITLAB_PAGES_ACCESS_CLIENT_SECRET:-}
GITLAB_PAGES_ACCESS_REDIRECT_URI=${GITLAB_PAGES_ACCESS_REDIRECT_URI:-}
GITLAB_PAGES_NGINX_PROXY=${GITLAB_PAGES_NGINX_PROXY:-true}
+GITLAB_PAGES_NAMESPACE_IN_PATH=${GITLAB_PAGES_NAMESPACE_IN_PATH:-false}
+GITLAB_PAGES_LOG_VERBOSE=${GITLAB_PAGES_LOG_VERBOSE:-false}
## Gitaly
GITALY_CLIENT_PATH=${GITALY_CLIENT_PATH:-$GITLAB_GITALY_INSTALL_DIR}
diff --git a/assets/runtime/functions b/assets/runtime/functions
index 67750f2f..7728c490 100644
--- a/assets/runtime/functions
+++ b/assets/runtime/functions
@@ -2153,6 +2153,8 @@ if [[ ${GITLAB_PAGES_ACCESS_CONTROL} == true ]]; then
GITLAB_PAGES_ACCESS_REDIRECT_URI \
GITLAB_PAGES_ACCESS_SECRET \
GITLAB_PAGES_ACCESS_CONTROL_SERVER \
+ GITLAB_PAGES_NAMESPACE_IN_PATH \
+ GITLAB_PAGES_LOG_VERBOSE \
GITLAB_INSTALL_DIR
if [[ -n ${GITLAB_PAGES_ARTIFACTS_SERVER_URL} ]]; then
@@ -2162,6 +2164,8 @@ if [[ ${GITLAB_PAGES_ACCESS_CONTROL} == true ]]; then
fi
else
update_template ${GITLAB_PAGES_CONFIG} \
+ GITLAB_PAGES_NAMESPACE_IN_PATH \
+ GITLAB_PAGES_LOG_VERBOSE \
GITLAB_INSTALL_DIR
exec_as_git sed -i "/{{GITLAB_PAGES_ACCESS_CLIENT_ID}}/d" ${GITLAB_PAGES_CONFIG} Fixed patch. |
To get the correct links in deploy-pages the following patch is needed as well:
|
Starting with 16.7 a new pages feature us delivered (as experimental):
https://docs.gitlab.com/ee/administration/pages/#pages-domain-without-wildcard-dns
Please add this option.
The text was updated successfully, but these errors were encountered: