T
Size: a a a
T
r
map $http_x_forwarded_proto $xscheme {
default $http_x_forwarded_proto;
"" $scheme;
}
...
location / {
proxy_hide_header X-Powered-By;
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains" always;
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $host;
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 $xscheme;
proxy_redirect http://127.0.0.1:8080/ $xscheme://$host/;
}
T
r
X-Forwarded-Proto
ничего. А на него многие приложения смотрят.MK
L
DB
T
DB
DB
DB
ВИ
DB
ВИ
DB
DB
DB
r
ВИ