Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TedImg - img.tedomum.net
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TeDomum
TedImg - img.tedomum.net
Commits
45a000ac
Commit
45a000ac
authored
Jun 09, 2018
by
kaiyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward the x forwarded proto to the app
parent
1ded4e87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
docker/nginx.conf
docker/nginx.conf
+9
-4
No files found.
docker/nginx.conf
View file @
45a000ac
...
...
@@ -23,6 +23,11 @@ http {
gzip
on
;
gzip_disable
"msie6"
;
map
$http_x_forwarded_proto
$proxy_x_forwarded_proto
{
default
$http_x_forwarded_proto
;
''
$scheme
;
}
server
{
listen
80
;
...
...
@@ -45,10 +50,10 @@ http {
location
/
{
proxy_pass
http://127.0.0.1:8000/
;
proxy_set_header
Host
$http_host
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Forwarded-Proto
$scheme
;
proxy_set_header
Host
$http_host
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Forwarded-Proto
$proxy_x_forwarded_proto
;
}
}
}
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