If deploying a global environment setup, the nginx-samples/gslb directory contains the files needed. Setup includes:
- Place the nginx.conf and upstreams.conf files in the OpenResty install directory for nginx configuration (that is /usr/local/openresty/nginx/conf).
- Modify the upstreams.conf to include the IPs of the backend OpenResty servers.
- Copy gslb.lua to the OpenResty install directory for nginx (that is /usr/local/openresty/nginx).
- Copy the lua directory or contents to the OpenResty install directory for nginx (that is /usr/local/openresty/nginx/lua).