forked from github.com/pypiserver
Add $scheme forwarding to example nginx configuration
Adding `X-Forwarded-Proto` makes bottle pick up on the original request's scheme (https/http), so that the URL on the welcome page is displayed correctly.
This commit is contained in:
parent
56fe8f3a26
commit
5241ded111
|
@ -671,6 +671,7 @@ Extend your nginx configuration::
|
|||
|
||||
location / {
|
||||
proxy_set_header Host $host:$server_port;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass http://pypi;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue