Reverse proxy behind nginx docker container not working Kibana 6.2.3

Thanks, @jarpy! I'm using docker for orchestration similar to 126732

My kibana.yml:

server.host: "0.0.0.0"
server.basePath: "/kibana"
server.rewriteBasePath: false
elasticsearch.url: "http://elasticsearch:9200"
xpack.security.enabled: false

My location from nginx:

location /kibana/ {
auth_request /admin/users/nginx/auth_request/;
error_page 401 /401$request_uri;
rewrite ^/kibana(.*)$ $1 break;
proxy_pass http://kibana:5601;
}