The situation is the following:
I have two servers running on my machine. One being an outwards facing server while being a reverse proxy for the second one, which only listens on localhost and provides a service.
The second server is supposed to run over
https. I know see two options:
- Just implement
httpson the second server, and have the reverse proxy serve the https package to it.
- Implement the
httpslogic in the reverse proxy and "abstract https away" for the second server.
I don't even know if both of these options are possible, let alone viable. If so, what are the advantages and disadvantages of both solutions?
EDIT: In this scenario, the reverse proxy is nginx, and the service providing server is a Node.js server.