Application which is Proxy component for Vernissage photos sharing platform.
The proxy is used to redirect traffic from to the relevant applications running behind the proxy based on the web request headers.
Requests that have Accept=application/json
(and smimilar) set are redirected directly to the Vernissage API (Swift), all others to the Vernissage Web (Angular).
+-----------------------------+
+-------------------------->| VernissageWeb (Angular) |
| +-------------+---------------+
| |
+-------------+---------------+ |
| VernissageProxy (Nginx) | |
+-------------+---------------+ |
| |
| +-------------+---------------+
+-------------------------->| VernissageAPI (Swift) |
application/json +-----------------------------+
In production environments, it is best to use a docker image.