I have a rails application hosted on Heroku that I need to integrate with 3rd party payments provider. The payment provider requires that my application will have a static IP for incoming and outgoing HTTPS requests. I want to deploy a proxy on a Linode VPS so it can relay the information as a proxy. Relaying the request to the service provider seems easy, I just use their IP.
Can I relay requests coming from the service provider to the heroku application? Can I relay the request using a URL (https://myapp.herokuapp.com) ?
What is the recommended proxy server to use?
Deploying a Static Web Application to Heroku 1 Create a GitHub Repository and upload your application files To learn how to create a new repository, click here. ... 2 Create an account on Heroku Visit Heroku and Sign up for a new account if you are a new user or log in to your account. ... 3 Connect your GitHub Repository on Heroku and Deploy
Heroku is a hosting platform where you can deploy dynamic applications in Rails, PHP, Node.js and Python web applications. In order to deploy a site you need a couple of things: Download the Heroku Toolbelt – a command line application for managing your Heroku account
You can use A simple HTTP and REST client for Ruby for detecting your IP: Next, you can run the below example in an IRB session and verify that the final IP returned is one of your two static IPs. Fixie is another option. Fixie is an add-on that provides Heroku applications with a fixed set of static IP addresses for outbound requests.
When you run the command, the url that appears is the deployment url of the created web application, and the address of the created remote git repository is also displayed. If you want to create an app with a specified name, you can use heroku create <app-name> or heroku apps:create <app-name> command.
It's better to look into: https://devcenter.heroku.com/articles/quotaguardstatic
If you have a credit card and the app has no much traffic (250 request and 100MB of traffic bandwidth) Quotaguard has a free starter plan (to add this to heroku heroku addons:add quotaguardstatic:starter
).
Here are the plans: Quota Guard Static Plans
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With