How do I access the configuration settings from within opensearch

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch 2.11.1

Describe the issue:
I am coding a custom notification channel to be used by the alerting plugin. In the message body send to the destination, I want to include a link back to opensearch and the query used to generate the alert.
To do this, I need the current hostname and port that opensearch is currently using.

Within opensearch, how do I get its hostname and port?

Configuration:
Opensearch is running in a container

Relevant Logs or Screenshots:

You can call the nodes API to get the public address of each node:

GET _nodes/http

, but the nodeIP:port may not be accessed directly if there’s a proxy in front of your cluster, so how about create an index in your cluster to record the endpoint of your cluster?

Yes, I see that the host address is available in this command but I really need something that would allow me to pull the values configured in the opensearch.yml file. My basic need is for the host and port, but I will eventually also need configured values that define the keystore filename and password. Is there no interface that provides this?

I am doing this from java in the notifications plugin backend code.