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-03-01Support disk-based zip archivesKamil Trzciński
2019-03-01Plug-in zip archiveKamil Trzciński
2019-03-01Open `.zip` archiveKamil Trzciński
2019-03-01Add zip storageKamil Trzciński
2019-02-28Fix commentsKamil Trzciński
2019-02-28Add storage interfaceKamil Trzciński
2019-02-28Support everythingKamil Trzciński
2019-02-28Work on testsKamil Trzciński
2019-02-28Update codeKamil Trzciński
2019-02-28Update codeKamil Trzciński
2019-02-28Request configuration from APIKamil Trzciński
2019-02-28Fix handling of pathsKamil Trzciński
2019-02-28Refactor, againKamil Trzciński
2019-02-27Add function to request domainKamil Trzciński
2019-02-27Drop watching a list of domainsKamil Trzciński
2019-02-05Add tests for running on non standard portsVladimir Shushlin
2019-02-01Make extensionless URL workingRiccardo Padovani
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-11Make content-type detection consistent between file typesNick Thomas
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
2019-01-10Adding `defer file.Close()` in D.detectContentType()Reto Kaiser
2019-01-10Move content-type detection to separate function D.detectContentType()Reto Kaiser
2018-12-06Don't scan subgroups past gitlab-rails limitAlessio Caiazza
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-29subgroup supportAlessio Caiazza
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-10-12Fix 404 for project with capital lettersAlessio Caiazza
When loading domains map from disk we lowercase the project name, this patch will lowercase it also when checking incoming HTTP requests against the configuration map.
2018-10-12Add acceptance tests for URLs with capital lettersAlessio Caiazza
2018-10-02Fix comparing the domain and log request information as well. Removed ↵Tuomo Ala-Vannesluoma
invalid comment and fixed one else case.
2018-09-30Merge commit 'd07b803b6f8519566940843e389a6c2d73424a76' into authTuomo Ala-Vannesluoma
2018-09-27Stop serving shadowed namespace project filesNick Thomas
2018-09-22Copied the fixed getProject function from the !111 to make tests passTuomo Ala-Vannesluoma
2018-09-22Add special handling for namespace projects to avoid existence leakTuomo Ala-Vannesluoma
2018-09-12Avoid caching if project is access controlledTuomo Ala-Vannesluoma
2018-09-10Move access controlled projects under a group without default domain projectTuomo Ala-Vannesluoma
2018-09-10Fix handling the projects with not updated configurationTuomo 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-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-23Update map_test.goNick Thomas
2018-08-23dm.Map#ReadGroups never returns an errorNick Thomas
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-08-07Make private pages public if gitlab and pages is ran without access control, ↵Tuomo Ala-Vannesluoma
add support for custom domains for which auth is proxied via gitlab pages domain
2018-07-02Get rid of panic serving errorsTuomo Ala-Vannesluoma
2018-06-30Combine private boolean with the access_control flagTuomo Ala-Vannesluoma
2018-06-30Change project id to uint64Tuomo Ala-Vannesluoma