Connect to PostGre DB using HTTP proxy

satish kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2018

Hello Community team,

 

We are using postgresql-9.4-1202.jdbc41.jar and our PostGre DB is in different data center. The requirement is to connect to that DB server via HTTP proxy is it possible? If so which data source class and what parameters to use?

Kindly advise.

1 answer

0 votes
Hassan Aftab
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 7, 2018

Hi Satish

I tried looking through some options to implement this, but couldn't find an exact answer for this.

A possible workaround for your situation is to use TCP proxy and not HTTP.

You can configure the proxy at your datacenter to route all requests coming at the database port to forward to Postgres database.

Following article is a very good started with this.

In general, any proxy like HTTPd, Nginx or HAproxy can be used for this purpose.

 

Thanks, 

Hassan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events