summaryrefslogtreecommitdiff
path: root/lib/support
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Defend against 'Host' header injection"Jacob Vosmaer2016-08-082-12/+2
| | | | | | This reverts commit 47b5b441395921e9f8e9982bb3f560e5db5a67bc. See https://gitlab.com/gitlab-org/gitlab-ce/issues/17877#note_13488047
* Defend against 'Host' header injectionJacob Vosmaer2016-07-122-2/+12
| | | | | | | | | | | | | | | | | | | | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/17877 . This change adds 'defense in depth' against 'Host' HTTP header injection. It affects normal users in the following way. Suppose your GitLab server has IP address 1.2.3.4 and hostname gitlab.example.com. Currently, if you enter 1.2.3.4 in your browser, you get redirected to 1.2.3.4/users/sign_in. After this change, you get redirected from 1.2.3.4 to gitlab.example.com/users/sign_in. This is because the address you typed in the address bar of your browser ('1.2.3.4'), which gets stored in the 'Host' header, is now being overwritten to 'gitlab.example.com' in NGINX. In this change we also make NGINX clear the 'X-Forwarded-Host' header because Ruby on Rails also uses that header the same wayas the 'Host' header. We think that for most GitLab servers this is the right behavior, and if not then administrators can change this behavior themselves at the NGINX level.
* Add note about port needed in NGINX configAchilleas Pipinellis2016-05-221-0/+2
|
* Add NGINX config file for RegistryAchilleas Pipinellis2016-05-221-0/+51
|
* Replace gitlab-workhorse with GitLab Workhorse where appropriateinitd_gitlab_workhorse_renameAchilleas Pipinellis2016-04-281-6/+6
|
* Add a branded 503 static error pagers-503-pageRobert Speicher2016-04-222-2/+4
| | | | | | [ci skip] Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15398
* Remove deprecated NGINX CI configAchilleas Pipinellis2016-04-141-29/+0
|
* Do not serve anything via nginx as we have workhorseArtem Sidorenko2016-03-112-2/+19
| | | | | Otherwise this might 'hide' problems https://github.com/gitlabhq/gitlabhq/issues/10053#issuecomment-188919319
* Merge branch 'doc_relative_url' into 'master' Achilleas Pipinellis2016-02-101-4/+9
|\ | | | | | | | | | | | | Add documentation on relative URL support closes #12773 See merge request !2770
| * Edit configuration files for relative URL supportAchilleas Pipinellis2016-02-091-4/+9
| | | | | | | | [ci skip]
* | Merge branch 'fix-init' into 'master' Rémy Coutable2016-02-081-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed init.d script not working on OS X -s flag of su doesn't work correctly on OS X, logging in as the user and not running the requested command. By moving the bash shell init inside the su command we avoid the issue Fixes Issue #3309 See merge request !1728
| * | Fixed init.d script not working on OS Xritave2016-02-081-1/+1
| |/ | | | | | | | | | | -s flag of su doesn't work correctly on some systems, loging in the user and not running the requested command. By moving the bash shell init inside the su command we avoid the issue
* | suppress only errors in init-script while determining canonical path of ↵Harald Spaethe2016-02-081-1/+1
|/ | | | gitlab_workhorse_dir
* Consistent rails_socket use.fbretel2016-01-251-1/+1
|
* Init script changes for gitlab-workhorse in 8.4Jacob Vosmaer2016-01-212-3/+9
|
* Fix spelling of "it's" to "its" where appropriate.cafuego2015-12-242-7/+7
|
* Update init script options for gitlab-workhorseJacob Vosmaer2015-12-152-2/+3
|
* Pass all requests from NGINX to gitlab-workhorseJacob Vosmaer2015-12-112-290/+3
|
* Merge pull request #9892 from stetskevych/fix_nginx_ssl_configJacob Vosmaer2015-12-071-1/+1
|\ | | | | Fix gitlab-ssl nginx config to work when multiple server_names are served over https
| * Fix gitlab-ssl nginx config to work when multiple server_names are served ↵Vyacheslav Stetskevych2015-12-061-1/+1
| | | | | | | | over https
* | Check GitLab Workhorse status in init.d script when reporting all components ↵Stan Hu2015-12-041-1/+1
|/ | | | | | are up and running Closes https://github.com/gitlabhq/gitlabhq/issues/9869
* Fix alignmentRobert Speicher2015-11-271-6/+6
| | | | [ci skip]
* Fix indentation in NGINX confignginx-workhorse-upload-limitJacob Vosmaer2015-11-271-6/+6
|
* Repeat "client_max_body_size 0" everywhereJacob Vosmaer2015-11-272-0/+12
| | | | | It turns out that if we do not the declaration from "location /" wins.
* Merge branch 'client-max-body-size' into 'master' Robert Speicher2015-11-192-6/+2
|\ | | | | | | | | | | | | Do not limit workhorse POST/PUT size in NGINX Limiting, if any, should happen in gitlab-workhorse. See merge request !1831
| * Do not limit workhorse POST/PUT size in NGINXJacob Vosmaer2015-11-192-6/+2
| | | | | | | | Limiting, if any, should happen in gitlab-workhorse.
* | Deploy page should be shown for all pages not just rootDrew Blessing2015-11-182-2/+2
|/
* Add support for git lfs.lfsMarin Jankovski2015-11-162-2/+16
|
* Fix nginx config to use @gitlab-workhorseKamil Trzcinski2015-11-102-8/+8
|
* Implement Build ArtifactsKamil Trzcinski2015-11-102-0/+32
| | | | | | | - Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
* Switch to gitlab-workhorseJacob Vosmaer2015-10-294-63/+60
|
* Fix NGINX API download regexJacob Vosmaer2015-10-142-2/+2
| | | | Users are allowed to supply namespace%2Fproject instead of a numeric ID
* Let gitlab-git-http-server handle archive downloadsJacob Vosmaer2015-10-082-2/+38
| | | | This change relies on changes in gitlab_git and gitlab-git-http-server.
* Add missing rake and change nginx config for CI migrationKamil Trzcinski2015-09-221-12/+0
|
* Add missing proxy requests to migration docsfix-nginxKamil Trzcinski2015-09-161-0/+12
|
* Added migration docs and updated installation documentationKamil Trzcinski2015-09-161-0/+29
|
* The good stuff needs NGINX 1.7.11nginx-git-httpJacob Vosmaer2015-09-072-6/+10
|
* Do not let NGINX buffer Git HTTP requestsJacob Vosmaer2015-09-072-0/+14
| | | | | | | | | | | | Before this change NGINX would convert a chunked HTTP POST (e.g. git push) into a HTTP 1.0 single large POST. This creates an unnecessary delay, and it creates unnecessary memory pressure on gitlab-git-http-server. For the response ('proxy_buffering') I am less sure that NGINX 's buffering behavior is harmful, but it still makes more sense to me not to interfere with gitlab-git-http-server (and the Golang net/http server).
* Be more defensive when running 'kill'gitlab-git-http-serverJacob Vosmaer2015-08-311-1/+1
|
* Replace grack with gitlab-git-http-serverJacob Vosmaer2015-08-314-65/+107
|
* Fix init script for Reply by emailDouwe Maan2015-08-251-1/+1
|
* Fix init.d script.Douwe Maan2015-08-191-15/+15
|
* Fix lib/support/init.d/gitlab.Douwe Maan2015-08-191-20/+22
|
* Update init scripts.Douwe Maan2015-08-192-20/+84
|
* Experimental support for gitlab-git-http-serverJacob Vosmaer2015-07-282-0/+50
| | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-git-http-server This change introduces the GITLAB_GRACK_AUTH_ONLY environment variable. When set, Grack requests to GitLab will only respond with the user's GL_ID (if the request is OK) or an error. This allows gitlab-git-http-server to use the main GitLab application as an authentication and authorization backend. If we like how this works we should drop the GITLAB_GRACK_AUTH_ONLY variable at some point in the future.
* Merge pull request #9400 from tuxillo/patch-1Jacob Vosmaer2015-07-201-1/+1
|\ | | | | Use whoami instead of $USER
| * Use whoami instead of $USERAntonio Huete Jimenez2015-06-191-1/+1
| | | | | | - Use whoami instead of relying on the existence of $USER enviroment variable which is not always present
* | Merge branch 'nginx_defaulthost_documentation' into 'master'Dmitriy Zaporozhets2015-06-222-0/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | Close #178 Nginx conf default_host documentation This closes #178 We're just making it clear that some nginx installs such as by default on recent Ubuntu's, the /etc/nginx/sites-enabled/default file will conflict the listen line of the gitlab nginx conf's due to the default_server directive. changed installation.md to identify the issue to a user added notes to both nginx configs for gitlab and gitlab-ssl [ci-skip See merge request !225
| * fixed typoLuke Ashe-Browne2014-12-031-2/+2
| |
| * adding notes to gitlab nginx confLuke Ashe-Browne2014-12-032-1/+9
| | | | | | | | | | We want to make users aware that the nginx default config will conflict with the gitlab default_server conf file.