我的heroku应用程序的IP地址是什么? [英] what is the IP address of my heroku application
问题描述
所以在我的django应用程序中,我正在运行一个任务,它将从一个api的请求中以json的形式提供一些数据。
So in my django application, i'm running a task that will request from an api some data in the form of json.
为了让我获取这些数据,我需要给出请求来自哪里的IP地址(我的heroku应用程序)
in order for me to get this data, i need to give the IP address of where the requests are going to come from (my heroku app)
如何获取我的heroku应用程序将要求的IP地址
how do i get the ip address in which my heroku application will request at
推荐答案
Heroku本身不提供静态IP,但您可以使用插件来实现此目标。此处将讨论此限制 - https://devcenter.heroku.com/articles/apex-domains
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
通常网站使用URL而不是IP地址来验证请求。您可以使用 zerigo_dns 为您的Heroku应用程序获取静态IP地址。
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.
这篇关于我的heroku应用程序的IP地址是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!