what is the IP address of my heroku application

前端 未结 2 1061
鱼传尺愫
鱼传尺愫 2021-01-08 01:31

So in my django application, i\'m running a task that will request from an api some data in the form of json.

in order for me to get this data, i need to give the I

相关标签:
2条回答
  • 2021-01-08 01:55

    Heroku does not provide a static IP by itself but you can use addons to achieve this goal. This limitation is discussed here - https://devcenter.heroku.com/articles/apex-domains

    Generally sites use URL instead of IP address to authenticate requests. You can use zerigo_dns to get an static IP address for your Heroku app.

    0 讨论(0)
  • 2021-01-08 02:01

    To my knowledge you can not get an ip for a heroku application. You could create a proxy with a known ip that serves as a middleman for the application. Otherwise you might want to look at whether heroku is still the correct solution for you

    0 讨论(0)
提交回复
热议问题