Skip to content

Service to manage the nginx config using Sidecar for service disco

License

Notifications You must be signed in to change notification settings

Nitro/nginx-discovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx Discovery

Service that connects to Sidecar on an ongoing basis and manages an Nginx configuration to point to a single service by name.

Recognised environment variables:

Variable Mandatory Default
DISCOVERY_REFRESH_INTERVAL no 5s
DISCOVERY_FOLLOW_SERVICE no lazyraster
DISCOVERY_FOLLOW_PORT yes
DISCOVERY_TEMPLATE_FILENAME no templates/nginx.conf.tmpl
DISCOVERY_UPDATE_COMMAND no
DISCOVERY_VALIDATE_COMMAND no
DISCOVERY_SIDECAR_ADDRESS yes
DISCOVERY_NGINX_CONF no /nginx/nginx.conf
DISCOVERY_NGINX_PID no /tmp/nginx.pid

Example configuration:

$ DISCOVERY_SIDECAR_ADDRESS=dev-singularity.uw2.nitro.us:7777 \
	DISCOVERY_FOLLOW_SERVICE=lazyraster \
	DISCOVERY_FOLLOW_PORT=10109 \
	DISCOVERY_NGINX_CONF=/tmp/nginx.conf \
	go run main.go

About

Service to manage the nginx config using Sidecar for service disco

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages