How to Setup Static IP Heroku

Reading Time: 2 minutes

Static IP Heroku can be done by using NGINX reverse proxy hosting on EC2 with an elastic IP address instance. Talenox currently uses static IP addresses for our biometric hardware devices to connect to our Heroku backend.

 

Here’s how to do it

1. Launch an instance with your desired instance type. (Micro, Small, etc)

2. SSH into your instance to install NGINX

sudo apt-get update
sudo apt-get install nginx

3. Configure nginx. The proxy_set_header is the most important setting for it to work properly with Heroku, or you will face an error with “Heroku | No Such App”

        upstream backend  {

                server xxx.talenox.com;

        }

        server {

                listen          80;

                server_name     rpb1.talenox.com;

                location / {

                        proxy_pass              http://backend;

                        proxy_redirect          off;

                        proxy_set_header        X-Forwarded-For $remote_addr;

                        proxy_set_header        Host ‘xxxxx.herokuapp.com’;

                }

        }

4. nginx -s reload

 

SELECTED FOR YOU  Talenox Updates Q3 2021: CPF Direct Link-Up, bulk adjustments, and more.

All done! Head to http://(your elastic ip address) and it should work!

 

Got a business and employees to track?

Our payroll software enables you to pull data from your timesheets and biometric devices. Try us out now.

We’ve got fans. =)


Liked this article? You may also be interested in reading:
Introducing: The Billing Dashboard
How-to: Set up your StaffAny-Talenox Integration
How to Integrate Heroku Status Alerts into Slack

talenox updates q1 2022
Talenox Updates Q1 2022: Mass edit tax forms, new Tax module, and more.

Hi there! Talenox Updates Q1 2022 is here; find out what our busy developers have been working on in the Read more

submit ir8a directly to iras with talenox
Submit IR8A directly to IRAS with a Talenox Free account

The 2021 tax season is here. Today we discuss how you can use your Talenox Free account to submit IR8A Read more

IR8A Simplified for Employers

Singapore practises annual tax filing (instead of monthly) for income earned during a calendar year i.e. 1 Jan to 31 Read more

Talenox, Rebranded
Something look different? Talenox has a new website!

We’ve got a brand new website. You might have noticed changes in our logo, colours, and (even fonts) over the Read more

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.