Nomad
Nginx
@hashicorp
Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache. This pack runs it runs as a Nomad system job for load balancing.
- Community
- Pack
Updated 3 years ago
- GitHub(opens in new tab)
Nginx
This pack contains a single system job that runs Nginx across all Nomad clients.
See the Load Balancing with Nginx tutorial for more information.
Dependencies
This pack requires Linux clients to run.
Variables
http_port(number) - The Nomad client port that routes to the Nginx. This port will be where you visit your load balanced applicationservice_name(string) - The consul service you wish to load balanceversion_tag(string) - The docker image version. For options, see https://hub.docker.com/_/nginxresources(object) - The resource to assign to the Nginx system task that runs on every clientjob_name(string) - The name to use as the job name which overrides using the pack namedatacenters(list of string) - A list of datacenters in the region which are eligible for task placementregion(string) - The region where the job should be placed