Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-27Disable automatic HTTP -> HTTPS redirection if no HTTPS server definedsh-disable-auto-redirect-if-https-not-enabledStan Hu
Right now the logic for determing when HTTPS redirection should happen is split in both the GitLab Rails and Pages processes. This means that the Pages configuration in Omnibus has to be specified correctly for Sidekiq for the HTTPS-only feature to work properly. We can simplify this by consolidating alll the HTTPS redirection logic here and removing it from Rails. Closes https://gitlab.com/gitlab-org/gitlab-pages/issues/163
2018-08-27Merge branch 'sh-fix-pages-redirection-group-domains' into 'master'Nick Thomas
Fix HTTP to HTTPS redirection not working for default domains Closes #162 See merge request gitlab-org/gitlab-pages!106
2018-08-27Fix HTTP to HTTPS redirection not working for default domainsStan Hu
If a default domain is in use, the group domain will be passed into the IsHTTPSOnly() call, but this will always return false because the HTTPS-only flag can only be determined by looking at the HTTP request host rather than the URL. For example, for the project https://gitlab.com/tanukitalks/tanukitalks.gitlab.io, this is what happened previously: 1. For a project in the default domain (e.g. `gitlab.io`), GitLab Pages loads `config.json` and sees the group is `tanukitalks` with the project name `tanuitalks.gitlab.io`. It stores the HTTPS-only flag inside the project config. 2. Note that for projects in the default domain, the `domainConfig` is empty. This makes sense because there is no domain configuration specified since the default domain is being used, and we need to redirect on a project-by-project basis. 3. User requests https://tanukitalks.gitlab.io. 4. GitLab Pages looks up `tanukitalks.gitlab.io`, and it returns the domain `tanukitalks` with an empty `domainConfig` and project `tanukitalks.gitlab.io`. 5. Since there is no `domainConfig`, `IsHTTPSOnly` attempts to resolve the project from the URL. 6. However, since the URL is using the default domain, the path is `/`, which doesn't resolve to any project. In the new behavior, we check the hostname of the request to see if it matches any project before trying to parse the URL. Closes #162
2018-08-26Merge branch 'sh-log-duplicate-domains' into 'master'Nick Thomas
Log duplicate domain names Closes #160 See merge request gitlab-org/gitlab-pages!107
2018-08-26Log duplicate domain namesStan Hu
This will help make it easier to track stale `config.json` files on disk. Closes https://gitlab.com/gitlab-org/gitlab-pages/issues/160
2018-08-23Merge branch 'sh-abort-upon-domain-scan-error' into 'master'Nick Thomas
Abort domain scan if a failure is encountered Closes gitlab-com/infrastructure#4749 See merge request gitlab-org/gitlab-pages!102
2018-08-23Update map_test.goNick Thomas
2018-08-23dm.Map#ReadGroups never returns an errorNick Thomas
2018-08-23Merge branch 'bjk/update_prom_vendor' into 'master'Nick Thomas
Update Prometheus vendoring. See merge request gitlab-org/gitlab-pages!105
2018-08-23Merge branch 'bjk/update_gRPC_vendor' into 'master'Nick Thomas
Update vendor github.com/grpc-ecosystem/go-grpc-middleware@v1.0.0 See merge request gitlab-org/gitlab-pages!104
2018-08-20Update Prometheus vendoring.Ben Kochie
2018-08-20Update vendor github.com/grpc-ecosystem/go-grpc-middleware@v1.0.0Ben Kochie
2018-08-15Make it clear in commen tthat DomainUpdates pertains to successful updatesStan Hu
2018-08-15Make it explicit that when ReadGroups fails initially, an error is loggedStan Hu
2018-08-14Abort domain scan if a failure is encounteredStan Hu
This prevents the total domain list to be cleared out completely while the system is running. Closes https://gitlab.com/gitlab-com/infrastructure/issues/4749
2018-07-06Merge branch '145-pages-1-0-0' into 'master'v1.0.0test-branch1-0-stableNick Thomas
Release GitLab Pages v1.0.0 Closes #145 See merge request gitlab-org/gitlab-pages!101
2018-07-06Release GitLab Pages v1.0.0Nick Thomas
2018-06-22Merge branch 'feature/add-support-for-reverse-proxy' into 'master'Alessio Caiazza
Add support for reverse proxy See merge request gitlab-org/gitlab-pages!99
2018-06-20Add support for reverse proxyDennis Günnewig
2018-06-20Add tests for reverse proxyDennis Günnewig
2018-06-13Merge branch 'fix/logic-debug-output' into 'master'Nick Thomas
Fix logic for output of domains in debug mode See merge request gitlab-org/gitlab-pages!98
2018-06-04Merge branch 'moving-to-gitlab' into 'master'Alessio Caiazza
Switch to a GitLab fork of go-mimedb See merge request gitlab-org/gitlab-pages!100
2018-06-04Switch to a GitLab fork of go-mimedbNick Thomas
2018-05-22Fix logic for output of domains in debug modeDennis Günnewig
2018-05-16Merge branch 'document-processes' into 'master'Alessio Caiazza
Document some processes as they currently stand See merge request gitlab-org/gitlab-pages!96
2018-05-16Numbered list for release processNick Thomas
2018-05-16Simplify and concretise semverNick Thomas
2018-05-16Create a stable branch for every major or minor releaseNick Thomas
2018-05-16Document some processes as they currently standNick Thomas
2018-05-04Merge branch 'admin-socket-777' into 'master'Nick Thomas
Use permissive unix socket permissions Closes #141 See merge request gitlab-org/gitlab-pages!95
2018-05-04Use permissive unix socket permissionsJacob Vosmaer
2018-04-30Release v0.9.1v0.9.1Nick Thomas
2018-04-30Merge branch '129-restore-inplace-chroot-as-option' into 'master'Nick Thomas
Make the old in-place chroot behaviour available as a command-line flag Closes #129 See merge request gitlab-org/gitlab-pages!92
2018-04-27Restore the old in-place chroot behaviour as a command-line optionNick Thomas
2018-04-26Merge branch '10-fix-dev-urandom-unavailable' into 'master'Nick Thomas
Create /dev/random and /dev/urandom when daemonizing and jailing Closes #10 See merge request gitlab-org/gitlab-pages!93
2018-04-26Create /dev/random and /dev/urandom when daemonizing and jailingNick Thomas
Go on Linux normally uses the getrandom() syscall to get entropy. However, this is onl available for Linux version >= 3.17 Making /dev/random and /dev/urandom available in the chrooted jail allows the daemon to operate correctly on these systems. It's important to handle this automatically, as the previous workaround of manually creating these character devices is made more difficult by the use of a random directory in $TMPDIR.
2018-04-25Merge branch '129-fix-chroot-with-bind-mount' into 'master'Nick Thomas
Clean up the created jail directory if building the jail doesn't work Closes #131 See merge request gitlab-org/gitlab-pages!90
2018-04-25Clean up the created jail directory if building the jail doesn't workNick Thomas
2018-04-24Merge branch 'release-0-9' into 'master'v0.9.00-9-stableNick Thomas
Release v0.9.0 Closes #132 See merge request gitlab-org/gitlab-pages!91
2018-04-24Release v0.9.0Nick Thomas
2018-04-23Merge branch 'grpc-health-unix' into 'master'Nick Thomas
Add gRPC admin health check See merge request gitlab-org/gitlab-pages!85
2018-04-23Add gRPC admin health checkJacob Vosmaer (GitLab)
2018-04-23Merge branch 'golang-lint-download-fix' into 'master'Nick Thomas
Work around golang.org/x/lint download trouble See merge request gitlab-org/gitlab-pages!89
2018-04-23Work around golang.org/x/lint download troubleJacob Vosmaer (GitLab)
2018-04-13Merge branch 'ignore-golint' into 'master'Nick Thomas
Add test dependency to gitignore See merge request gitlab-org/gitlab-pages!88
2018-04-13Merge branch 'require-error' into 'master'Nick Thomas
Use require.NoError instead of assert.NoError See merge request gitlab-org/gitlab-pages!87
2018-04-13Use require.NoError instead of assert.NoErrorJacob Vosmaer (GitLab)
2018-04-13Add test dependency to gitignoreJacob Vosmaer
2018-04-12Merge branch 'grpc-dependencies' into 'master'Nick Thomas
Add more gRPC dependencies See merge request gitlab-org/gitlab-pages!86
2018-04-12Add more gRPC dependenciesJacob Vosmaer