mirror of
https://github.com/clearml/clearml-server
synced 2025-02-12 07:38:28 +00:00
Correct nginx proxy Host header
The Host header should be the target host not the source host
This commit is contained in:
parent
a7ed46979f
commit
d4457b6f48
@ -38,7 +38,7 @@ server {
|
|||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $proxy_host;
|
||||||
proxy_pass ${NGINX_APISERVER_ADDR};
|
proxy_pass ${NGINX_APISERVER_ADDR};
|
||||||
rewrite /api/(.*) /$1 break;
|
rewrite /api/(.*) /$1 break;
|
||||||
}
|
}
|
||||||
@ -57,4 +57,4 @@ server {
|
|||||||
error_page 500 502 503 504 /50x.html;
|
error_page 500 502 503 504 /50x.html;
|
||||||
location = /50x.html {
|
location = /50x.html {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user