clojure - Compojure - how can I get the servers own IP? -
my elastic beanstalk app written in clojure using compojure framework dispatches html document java-script regular timed refreshes of element within document, has query server.
only don't idea of putting url anywhere in code, bit of hassle change. make config parameter set in elastic beanstalk configuration, figure there should way public ip code. only, can't seem find that.
is there way own public ip within ring server?
elastic beanstalk should set x-forwarded-host
header in request should contain host hostname can use in application.
excerpt example request:
{:headers {"x-forwarded-host" "default-environment.adfadsbxczvdf.us-east-1.elasticbeanstalk.com"}}
Comments
Post a Comment