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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -