mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 04:51:22 +01:00
add comments of x-fowarded-XXX headers
This commit is contained in:
parent
b3075e46c2
commit
4cb5ed3ee5
@ -45,9 +45,12 @@ http {
|
||||
location / {
|
||||
proxy_pass http://ui/;
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
# Remove the following three lines if setting up harbor behind an nginx proxy or Elastic Load Balancing.
|
||||
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_buffering off;
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
@ -59,9 +62,12 @@ http {
|
||||
location /v2/ {
|
||||
proxy_pass http://registry/v2/;
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
# Remove the following three lines if setting up harbor behind an nginx proxy or Elastic Load Balancing.
|
||||
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_buffering off;
|
||||
proxy_request_buffering off;
|
||||
|
||||
@ -70,9 +76,12 @@ http {
|
||||
location /service/ {
|
||||
proxy_pass http://ui/service/;
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
# Remove the following three lines if setting up harbor behind an nginx proxy or Elastic Load Balancing.
|
||||
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_buffering off;
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user