Well this was a misconfiguration on my end, caused on a different level. I accidentally exposed the ports on the influxdb container rather than the nginx container which were in the same network, so all API accces (https) went directly to influxdb which expected http only.