How to add an Nginx reverse proxy in front of asperanoded

Description

Nginx can be configured to act as a reverse proxy for Node API communication (asperanoded).

A reverse proxy can be advantageous in that it often provides additional protection (such as against DOS attacks) and resource handling for requests.

A reverse proxy such as that offered by Nginx offers these features, and is relatively simply to setup.

Instructions

The following instructions are for Linux systems that have Nginx installed, and assume you have valid certificates for your transfer server system.

1. Set the asperanoded port to 9091

Since the asperanoded port on your transfer server won't be directly exposed to the outside world, it is recommended to use HTTP for traffic from the proxy to your transfer server. Use the following commands to disable HTTPS, enable HTTP, set the HTTP port and only accept asperanoded traffic from local HTTP traffic: