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
2019-01-11Merge branch 'ac-subgroups' into 'master'Nick Thomas
pages for subgroups Closes gitlab-ce#30548 See merge request gitlab-org/gitlab-pages!123
2019-01-11Merge branch 'gzip-content-type' into 'master'Nick Thomas
Prevent wrong mimetype being set for GZipped files with unknown file extension Closes #181 See merge request gitlab-org/gitlab-pages!122
2018-12-06Refactor domain.BenchmarkReadGroupsAlessio Caiazza
2018-12-05Set the "Content-Type" only based on the file extensionReto Kaiser
This prevents false content-type detection based on the file contents, when they are gzipped. Closes #181
2018-11-29extract domain.group struct from domain.DAlessio Caiazza
2018-11-19Fix TOCTOU race condition when serving filesAlessio Caiazza
2018-10-24Fix import paths for goimportNick Thomas
2018-09-30Merge commit 'd07b803b6f8519566940843e389a6c2d73424a76' into authTuomo Ala-Vannesluoma
2018-09-27Stop serving shadowed namespace project filesNick Thomas
2018-09-22Add special handling for namespace projects to avoid existence leakTuomo Ala-Vannesluoma
2018-09-03Merge branch 'master' into authNick Thomas
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-06-30Add support for private projects and authentication with GitLab APITuomo Ala-Vannesluoma
2018-03-29Put domain code in a separate packageJacob Vosmaer (GitLab)