Commit Graph

214 Commits

Author SHA1 Message Date
GitLab Bot da07b341fd Add latest changes from gitlab-org/gitlab@master 2021-04-05 21:09:19 +00:00
GitLab Bot a020b8c048 Add latest changes from gitlab-org/gitlab@master 2021-02-03 00:09:41 +00:00
GitLab Bot e679965983 Add latest changes from gitlab-org/gitlab@master 2020-10-23 21:08:31 +00:00
GitLab Bot 340f15b402 Add latest changes from gitlab-org/gitlab@master 2020-06-30 15:08:48 +00:00
GitLab Bot 0d8e625e4c Add latest changes from gitlab-org/gitlab@master 2020-05-25 15:07:58 +00:00
GitLab Bot 1cf95147ea Add latest changes from gitlab-org/gitlab@master 2020-05-22 18:08:21 +00:00
GitLab Bot 31a340adab Add latest changes from gitlab-org/gitlab@master 2020-05-15 18:07:52 +00:00
GitLab Bot e33f87ac0f Add latest changes from gitlab-org/gitlab@master 2020-04-21 15:21:10 +00:00
GitLab Bot 8a7efa45c3 Add latest changes from gitlab-org/gitlab@master 2020-04-02 18:08:11 +00:00
GitLab Bot 8ae26d705a Add latest changes from gitlab-org/gitlab@master 2020-03-17 12:09:52 +00:00
GitLab Bot 0e9eea40b6 Add latest changes from gitlab-org/gitlab@master 2020-02-11 21:08:44 +00:00
GitLab Bot e43077ab47 Add latest changes from gitlab-org/gitlab@master 2020-02-07 15:09:52 +00:00
GitLab Bot 80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
Mohammad Alhashash 2bc43c4471 Fix incorrect web server parameter in init.d script
Environment variable USE_WEB_SERVER should have the value of the selected webserver when calling bin/web startup script.

Fixes #65008
2019-07-24 08:48:49 +00:00
Nick Thomas 4aa76dddec
Remove dead MySQL code
None of this code can be reached any more, so it can all be removed
2019-07-23 16:53:03 +01:00
Dmitriy Zaporozhets 0abf225a2a Replace Unicorn with web server in the init.d script [ci skip]
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-05-17 17:00:29 +00:00
Marcel Amirault eb640eded7 Correct Gitlab Capitalization in code files 2018-09-21 12:05:37 +00:00
jelhan 23f705f2d0 Fix: redirect non-SSL request for gitlab registry to valid URL
HTTP host and URI should not be separated by a colon. Generated URLs was looking like http://registry.examples.com:/foo. That is throwing up let's encrypt cert requests for gitlab registry.
2018-07-24 22:42:23 +00:00
Imre Farkas 20dfe25c15 Export assigned issues in iCalendar feed 2018-05-31 14:01:04 +00:00
Melroy van den Berg 9fe6cabc99 Add omnibus remarks 2018-01-26 00:10:54 +01:00
Nick Thomas 603b68186a Filter sensitive query string parameters from NGINX access logs 2017-08-10 12:28:04 +01:00
Nick Thomas 94d9b545db Fix proxy config in Gitlab Pages nginx examples 2017-08-08 13:19:23 +01:00
Semen Romanov b5f11ee90c Invalid variable 2017-08-01 05:25:26 +00:00
Jacob Vosmaer 28590e8854 Enable Gitaly by default in GitLab 9.3 2017-05-30 16:09:44 +02:00
Jacob Vosmaer 39c6dd5b93 Duplicate gitaly init variables in 'default' file
This is needed because these variables depend (directly or indirectly)
on the 'app_root' variable which can be changed in the default file.
If app_root has a non-standard value, the value of e.g. gitaly_dir
generated in the init script becomes invalid.
2017-05-26 16:30:45 +02:00
Jacob Vosmaer 542b0d8b01 Use config.toml to configure Gitaly 2017-04-06 17:44:18 +02:00
Jacob Vosmaer 275b7797c1 Add gitaly source installation instructions 2017-03-21 14:55:41 +01:00
Rémy Coutable 691402fb2b
Merge branch '3kami3/gitlab-ce-real_ip'
See merge request !9623.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-20 08:40:02 +01:00
Nick Thomas 75e78f108f The GitLab Pages external-http and external-https arguments can be specified multiple times 2017-03-08 16:46:02 +00:00
3kami3 79c3ace80b https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9623#note_24573655
Fixed issues pointed out.
2017-03-03 22:20:29 +09:00
Paweł Chojnacki 76e96878aa Stop setting Strict-Transport-Securty header from within the app 2017-03-03 11:05:24 +00:00
3kami3 1bc5dab7b4 Add real_ip setting to nginx example.
ref)
https://docs.gitlab.com/omnibus/settings/nginx.html#configuring-gitlab-trusted_proxies-and-the-nginx-real_ip-module
2017-03-01 23:16:38 +09:00
Drew Blessing 41d431d97f Fix syntax error in init.d/gitlab after Pages -> CE
Cherry-picked ‘Fix syntax error in conditional statement’
2017-02-07 13:05:42 +00:00
Achilleas Pipinellis 5556db0404 Add missing gitlab-pages related vars in init.d/gitlab 2017-01-31 22:55:30 +00:00
Achilleas Pipinellis 84ff07cdcc Simplify NGINX server_name regex 2017-01-31 22:55:29 +00:00
Achilleas Pipinellis b39947864d chmod 644 gitlab.default.example
No need to be executable since it is sourced in /etc/init.d/gitlab
2017-01-31 22:55:29 +00:00
Achilleas Pipinellis cfc54df4a8 Set pages daemon to false 2017-01-31 22:55:29 +00:00
Achilleas Pipinellis deb9481efd Add missing variables for gitlab-pages
[ci skip]
2017-01-31 22:55:28 +00:00
Achilleas Pipinellis 4b45f284c9 Change the pages daemon proxy listen port to 8090
So as to be consistent with what is set in Omnibus
2017-01-31 22:55:28 +00:00
Achilleas Pipinellis 50bbc326a4 Change NGINX pages configs to account for the Pages daemon 2017-01-31 22:55:28 +00:00
Achilleas Pipinellis d5ccea0286 Add init scripts for GitLab Pages daemon 2017-01-31 22:55:28 +00:00
Kamil Trzcinski c66b15803a Fix confusing implementation detail in nginx config about how gitlab-pages work [ci skip] 2017-01-31 22:53:56 +00:00
Kamil Trzcinski 6c9ba469d9 Bring back GitLab Pages SSL config 2017-01-31 22:53:56 +00:00
Kamil Trzcinski 4afab3d4b6 Revert "Store pages in shared/pages/fqdn/fqdn/public or shared/pages/fqdn/subpath/public - makes it simpler to implement CNAMEs in future"
This reverts commit 86a2a78f0d13a678899460638add6b862059433e.
2017-01-31 22:53:55 +00:00
Kamil Trzcinski 94fdf58a87 Store pages in shared/pages/fqdn/fqdn/public or shared/pages/fqdn/subpath/public - makes it simpler to implement CNAMEs in future 2017-01-31 22:53:55 +00:00
Kamil Trzcinski 120f9abaa1 Add GitLab Pages
- The pages are created when build artifacts for `pages` job are uploaded
- Pages serve the content under: http://group.pages.domain.com/project
- Pages can be used to serve the group page, special project named as host: group.pages.domain.com
- User can provide own 403 and 404 error pages by creating 403.html and 404.html in group page project
- Pages can be explicitly removed from the project by clicking Remove Pages in Project Settings
- The size of pages is limited by Application Setting: max pages size, which limits the maximum size of unpacked archive (default: 100MB)
- The public/ is extracted from artifacts and content is served as static pages
- Pages asynchronous worker use `dd` to limit the unpacked tar size
- Pages needs to be explicitly enabled and domain needs to be specified in gitlab.yml
- Pages are part of backups
- Pages notify the deployment status using Commit Status API
- Pages use a new sidekiq queue: pages
- Pages use a separate nginx config which needs to be explicitly added
2017-01-31 22:50:39 +00:00
Mike Greiling 7e51cd32d3 update scripts and docs to reference the newly namespaced rake task 2017-01-27 15:23:09 -06:00
Nick Thomas eb09395b2b Upgrade NGINX configuration files to add websocket support 2016-12-12 12:58:42 +00:00
Jacob Vosmaer 427c9f0b5b Revert "Defend against 'Host' header injection"
This reverts commit 47b5b44139.

See https://gitlab.com/gitlab-org/gitlab-ce/issues/17877#note_13488047
2016-08-08 13:02:44 +02:00
Jacob Vosmaer 47b5b44139 Defend against 'Host' header injection
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.
2016-07-12 19:50:20 +02:00