G
G
ghostku2017-07-24 21:52:50
Nginx
ghostku, 2017-07-24 21:52:50

HTTP Request Proxy How?

There are two services:
1) The first service is a little-known PBX that can make, for example, a GET request when it receives a phone call. But she can only make a request to IP (but she can’t do it by domain) and only HTTP, while HTTPS can’t.
2) The second service is zapier.com, which can receive data in a GET request and then do a lot of interesting things with them. But they need to send requests to the hooks.zapier.com domain and it’s not a fact that its IP does not change, and they only accept HTTPS.

You need to befriend them. I think I can do it all in Python/Flask but before I start reinventing the wheel, I would like to know if there is a ready-made tool that I could lift on some digitalocean and solve all the problems :). With hope I look at Nginx in which I still do not understand anything.

Threat I would also like to hear what problems I may encounter if I do with HTTP HTTPS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2017-07-24
@ghostku

upstream zapier {
  server hooks.zapier.com;
}

server {
  listen 80;
  location ... {
    proxy_pass https://zapier;
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question