400 badMessage when running Metabase over HTTPS


I am having trouble getting Metabase working over HTTPS. I followed the instructions in the documentation (under ‘Using HTTPS with Metabase’), but I get the following error:

06-30 10:03:19 e[1mWARN http.HttpParsere[0m :: Illegal character 0x16 in state=START for buffer HeapByteBuffer@f0f873e[p=1,l=199,c=8192,r=198]={\x16<<<\x03\x01\x00\xC2\x01\x00\x00\xBe\x03\x03\x8f\x97\x98\xC5I\x15\xF9...\x00\x08\x9a\x9a\x00\x1d\x00\x17\x00\x18\xCa\xCa\x00\x01\x00>>>S,en;q=0.5\r\nAccep...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} 06-30 10:03:19 e[1mWARN http.HttpParsere[0m :: badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@33c8b152{r=0,c=false,a=IDLE,uri=-}

I use the jar file (with nohup) on an Ubuntu Server 14.04. I also have a nginx server running on the server which uses HTTPS and as such the client browsers also expect Metabase to run HTTPS, which means I need to delete browsing history quite often, otherwise browsers redirect to HTTPS which does not work in my case.

Any help would be appreciated!

EDIT: I created a droplet, copied the Metabase database there and run the Jar file to see if this error persists on another server, and it does. So it has nothing to do with conflict with nginx or anything similar.

EDIT2: I fixed the automatic redirect issue by changing the nginx configuarion (add_header Strict-Transport-Security “max-age=0;”;), but I’d still like to have HTTPS working for Metabase as well…