I can run influxdb with grafana locally But I can't run in aws-ec2 instance - (400 bad request)

Hi,

logs file:

I stay trying this: https://medium.com/@teebr/iot-with-an-esp32-influxdb-and-grafana-7380d1005229.
I don’t have nginx and/or apache2. (To run grafana behind reverse proxy. I wish I didn’t need this, because the original tutorial doesn’t talk about reverse proxy )
This is my grafana.ini and influxdb.conf:
https://gist.github.com/neuberfran/43149ef6bf395cfb144b7256c5a9e841

This is my issues photos :

How can I solve this, pleasestrong text