I have my Elasticsearch server and my APM-Server on in the same server.
My APM-Agent is installed on a separate server, where my application is.
The problem is that where the agent is installed the application enforces a strict HSTS policy. So when I try to send the metrics from the agent to my APM-Server on
http://188.8.131.52:8200 the request is cancelled, as it's sent over plain text rather than HTTPS protocol.
I attempted to install the APM-Server on the same server as as the APM-Agent. And tell it to connected to
http://localhost:8200. But that also has connection issues and doesn't work.
I looked into setting up SSL on the APM-Server but unfortunately because it's an IP and doesn't have DNS Let's Encrypt's certificates doesn't work.
If anyone can suggest a solution i'd be very grateful. I'm not really sure what to do, or if i'm missing something obvious that stops this from being a problem.
Side note: I do think having agent send data over HTTPS is a better option. I'm not sure why localhost didn't work but that would also be good option I