Skip to:
When using port forwarding, e.g. -p 8443:443 with Docker, the permanent redirects that have been added will break.
-p 8443:443
⇒ curl --silent --output /dev/null --insecure --dump-header /dev/stdout https://xxx:yyy@192.168.56.10:8443/ HTTP/1.1 301 Moved Permanently Server: nginx Date: Fri, 02 Mar 2018 14:43:40 GMT Content-Type: text/html Content-Length: 178 Location: https://192.168.56.10/graph/ Connection: keep-alive Strict-Transport-Security: max-age=63072000; includeSubDomains X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Cache-Control: no-store Pragma: no-cache
Prefixing the destination with $scheme://$http_host/ will detect and use the correct information:
$scheme://$http_host/
⇒ curl --silent --output /dev/null --insecure --dump-header /dev/stdout https://xxx:yyy@192.168.56.10:8443/ HTTP/1.1 301 Moved Permanently Server: nginx Date: Fri, 02 Mar 2018 14:51:33 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Location: https://192.168.56.10:8443/graph/ Strict-Transport-Security: max-age=63072000; includeSubDomains X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Cache-Control: no-store Pragma: no-cache
PR to follow
@C W, many thanks!merged
confirmed
@Nailya Kutlubaeva pls verify this Bug. Should we add some basic tests with PMM on the unusual port?
@Mykola Marzhan , please take a look to PR
I have added rules for the password-page as well, but have not tested those
password-page
When using port forwarding, e.g.
-p 8443:443
with Docker, the permanent redirects that have been added will break.⇒ curl --silent --output /dev/null --insecure --dump-header /dev/stdout https://xxx:yyy@192.168.56.10:8443/ HTTP/1.1 301 Moved Permanently Server: nginx Date: Fri, 02 Mar 2018 14:43:40 GMT Content-Type: text/html Content-Length: 178 Location: https://192.168.56.10/graph/ Connection: keep-alive Strict-Transport-Security: max-age=63072000; includeSubDomains X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Cache-Control: no-store Pragma: no-cache
Prefixing the destination with
$scheme://$http_host/
will detect and use the correct information:⇒ curl --silent --output /dev/null --insecure --dump-header /dev/stdout https://xxx:yyy@192.168.56.10:8443/ HTTP/1.1 301 Moved Permanently Server: nginx Date: Fri, 02 Mar 2018 14:51:33 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Location: https://192.168.56.10:8443/graph/ Strict-Transport-Security: max-age=63072000; includeSubDomains X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Cache-Control: no-store Pragma: no-cache
PR to follow