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
path: root/shared
AgeCommit message (Collapse)Author
2020-10-27Properly handle processing failures with `5xx`Kamil Trzciński
Prior to this change ALL processing failures unrelated to "file missing" would return `404`. This is inaccurate. Processing failures are failure of GitLab Pages and `500` should be returned in such cases.
2020-10-15Merge branch 'fix-zip-directories' into 'master'Vladimir Shushlin
Fix support for archives without directory structure Closes #482 See merge request gitlab-org/gitlab-pages!373
2020-10-13Fix support for archives without directory structureKamil Trzciński
In case of archives that do not store directories we would fail to automatically serve `index.html` for a `/` type of request. This makes us create directories when traversing the file list. ``` Archive: public-without-dirs.zip Length Date Time Name --------- ---------- ----- ---- 40 2020-09-15 02:47 public/subdir/hello.html 14 2020-09-15 03:35 public/subdir/2bp3Qzs9CCW7cGnxhghdavZ2bJDTzvu2mrj6O8Yqjm3YMRozRZULxBBKzJXCK16GlsvO1GlbCyONf2LTCndJU9cIr5T3PLDN7XnfG00lEmf9DWHPXiAbbi0v8ioSjnoTqdyjELVKuhsGRGxeV9RptLMyGnbpJx1w2uECiUQSHrRVQNuq2xoHLlk30UAmis1EhGXP5kKprzHxuavsKMdT4XRP0d79tie4tjqtfRsP4y60hmNS1vSujrxzhDa 33 2020-09-15 02:47 public/subdir/linked.html 31 2020-09-15 02:47 public/404.html 33 2020-09-15 02:47 public/index.html 258 2020-10-13 12:40 public/bad_symlink.html 18 2020-10-13 12:40 public/symlink.html ```
2020-10-13Ensure the content encoding is correct before reading the bodyfeistel
Avoid strange EOF error when the encoding is wrong
2020-09-28Ignore `@ hashed` directory for disk sourceJaime Martinez
2020-09-24Rebase from base branchJaime Martinez
Add vfs.VFS implementation for zip Fix build errors Clean zip vfs Add tests for Root Add zip serving metric Return a zip.Instance() when source == zip Add simple acceptance test for zip serving Use correct contents No need to start testServer in go routine
2020-09-21Keep test zip archive onlyJaime Martinez
2020-09-21WIP: apply some of the suggestionsJaime Martinez
2020-09-21Add zip package that implements vfs.RootJaime Martinez
Adds a zip package capable of reading zip files from an httprange.Resource. It reads archive file contents into memory per archive that is requested from the vfs.Root. WIP: add simple test for archive reader WIP: fix build WIP: update archive test WIP: adding tests for archive WIP: print more info WIP: update zip file correct symlink WIP: use correct file Add bad symlink file to zip Update handling long symlinks update documentation and reorg code fix up stuff
2020-09-15Add support for redirects24-add-redirectsEric Eastwood
Fix https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24
2020-07-06Address MR feedbackJaime Martinez
use correct reference
2020-07-06Move serving 404 logic to domain packageJaime Martinez
Simplify responsibilities of auth package and reduce complexity of app.go deciding which content to serve.
2020-07-06Get namespace domain if auth fails for a private domainJaime Martinez
Add acceptance test and some more domains for testing Move namespace domain serving logic Restore go.sum Remove redundant return Fix linter
2020-07-06Add custom 404 acceptance testAlessio Caiazza
2020-07-06Serve custom 404.html file for namespace domainsJaime Martinez
This will allow namespace domains to serve custom 404.html files for public projects. This change adds a check to check for permision only if it's serving a namespace domain with access controls enabled.
2020-06-03Add file size metric for disk servingJaime Martinez
2019-12-12Fix different issues with slashesKrasimir Angelov
Update code and tests to handle the fact thet API will always return prefix surrounded with slashes (e.g. `/prefix/`) and source.path with trailing slash (e.g. `path/to/public/`).
2019-11-29Pretty print new JSON test data / fixturesGrzegorz Bizon
2019-11-28Rename new source test fixture to avoid using existing domainGrzegorz Bizon
2019-11-27Add acceptance tests for new domains sourceGrzegorz Bizon
2019-06-12Resolve "Pages incorrectly serve acme-challenges with /index.html"Vladimir Shushlin
2019-06-03Redirect unknown ACME challenges to the GitLab instanceVladimir Shushlin
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-09Add acceptance test for subgroups access controlAlessio 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-10-12Add acceptance tests for URLs with capital lettersAlessio Caiazza
2018-09-22Add special handling for namespace projects to avoid existence leakTuomo Ala-Vannesluoma
2018-09-10Move access controlled projects under a group without default domain projectTuomo Ala-Vannesluoma
2018-09-10Add file to make an example of the project conflict issueTuomo Ala-Vannesluoma
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-06-30Combine private boolean with the access_control flagTuomo Ala-Vannesluoma
2018-06-30Convert access control acceptance tests to table basedTuomo Ala-Vannesluoma
2018-06-30Add support for private projects and authentication with GitLab APITuomo Ala-Vannesluoma
2018-03-14Add acceptance tests for two very simple casesNick Thomas
2018-03-07Merge branch 'https_only' into 'master'Nick Thomas
HTTPS-only pages See merge request gitlab-org/gitlab-pages!50
2018-03-07Use https://github.com/jshttp/mime-db to populate the mimedbNick Thomas
2018-03-06Implement HTTPS-only pagesRob Watson
- Check `config.json` for `httpsonly` attribute - Store value against custom domain or group/project pair - Respond with 301 redirect to HTTP requests to these domains/projects Re: https://gitlab.com/gitlab-org/gitlab-ce/issues/28857
2017-11-23Return 503 until pages are loaded for the first timeKamil Trzciński
2017-08-08Don't serve statically-compiled `.gz` files that are symlinksNick Thomas
2017-04-26Support for statically compressed gzip content-encodingJohn Papandriopoulos
2017-04-24Fix reading configuration for multiple custom domainsNick Thomas
Without this patch, the different domains end up with pointers to the same domainsConfig struct, as go re-uses the same region of memory on each iteration of a for loop.
2016-02-23Added missing fileKamil Trzcinski
2016-02-23Write tests for serving the 404.html pageKamil Trzcinski
2016-02-11Added more behavior testsKamil Trzcinski
2016-02-11First bunch of testsKamil Trzcinski