Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
67668d9d
Commit
67668d9d
authored
Jul 12, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jacobvosmaer-gitlab/gitlab-ce-strict-host-headers'
parents
db9dc7a3
47b5b441
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
CHANGELOG
CHANGELOG
+4
-0
lib/support/nginx/gitlab
lib/support/nginx/gitlab
+6
-1
lib/support/nginx/gitlab-ssl
lib/support/nginx/gitlab-ssl
+6
-1
No files found.
CHANGELOG
View file @
67668d9d
...
@@ -92,6 +92,10 @@ v 8.9.6
...
@@ -92,6 +92,10 @@ v 8.9.6
- Fix log statements in import/export. !5129
- Fix log statements in import/export. !5129
- Fix commit avatar alignment in compare view. !5128
- Fix commit avatar alignment in compare view. !5128
- Fix broken migration in MySQL. !5005
- Fix broken migration in MySQL. !5005
- Overwrite Host and X-Forwarded-Host headers in NGINX !5213
v 8.9.6 (unreleased)
- Fix importing of events under notes for GitLab projects
v 8.9.5
v 8.9.5
- Add more debug info to import/export and memory killer. !5108
- Add more debug info to import/export and memory killer. !5108
...
...
lib/support/nginx/gitlab
View file @
67668d9d
...
@@ -49,7 +49,12 @@ server {
...
@@ -49,7 +49,12 @@ server {
proxy_http_version 1.1;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
## By overwriting Host and clearing X-Forwarded-Host we ensure that
## internal HTTP redirects generated by GitLab always send users to
## YOUR_SERVER_FQDN.
proxy_set_header Host YOUR_SERVER_FQDN;
proxy_set_header X-Forwarded-Host "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
...
...
lib/support/nginx/gitlab-ssl
View file @
67668d9d
...
@@ -93,7 +93,12 @@ server {
...
@@ -93,7 +93,12 @@ server {
proxy_http_version 1.1;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
## By overwriting Host and clearing X-Forwarded-Host we ensure that
## internal HTTP redirects generated by GitLab always send users to
## YOUR_SERVER_FQDN.
proxy_set_header Host YOUR_SERVER_FQDN;
proxy_set_header X-Forwarded-Host "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment