mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-01 23:07:39 +02:00
update configure_https.md
This commit is contained in:
parent
da929df36e
commit
23170ce806
@ -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
|
cp yourdomain.com.crt /etc/pki/ca-trust/source/anchors/reg.yourdomain.com.crt
|
||||||
update-ca-trust
|
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;
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user