update configure_https.md

This commit is contained in:
xiahaoshawn 2016-04-14 19:01:07 +08:00
parent da929df36e
commit 23170ce806

View File

@ -120,3 +120,11 @@ After setting up HTTPS for Harbor, you can verify it by the follow steps:
cp yourdomain.com.crt /etc/pki/ca-trust/source/anchors/reg.yourdomain.com.crt
update-ca-trust
```
3. If setting up harbor behind an nginx proxy or elastic load balancing, harbor nginx will reset the values of x-fowarded-XXX headers from first layer nginx or elastic load balancing, and the requests will not be routed properly.
In this situation remove the following lines in "location /", "location /v2/" and "location /service/" sections.
```
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;
```