Home > Storage > ObjectScale and ECS > Product Documentation > Dell ECS with NGINX (OpenResty) > Single deployment example
An example of how to setup ECS with OpenResty is detailed in the following sections. It provides a base setup in which the reader can enhance the deployment to implement further. This example describes how to configure OpenResty for load balancing object (S3 and Swift) access and NFS access in a single deployment. For object access, http context is used and for NFS stream context is used.
Virtual machines running Ubuntu 16.04 were used as the server to host OpenResty. DNS installed on a Windows Server 2012 was used to map the OpenResty IP addresses to various names.
To customize OpenResty for ECS deployment, sources for OpenResty are downloaded and compiled with additional modules. Sample Lua scripts to conduct ECS health checks and provide ECS metrics are described and used in this example. In the global deployment of OpenResty, a sample “geo-pinning” Lua script has been developed and is described in the section Global load balancing example.