nixy | nginx auto configuration and service discovery | Runtime Evironment library
kandi X-RAY | nixy Summary
kandi X-RAY | nixy Summary
Nixy is a daemon that automatically configures Nginx for web services deployed on Apache Mesos and Marathon.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nixy
nixy Key Features
nixy Examples and Code Snippets
Community Discussions
Trending Discussions on nixy
QUESTION
I have a mesos
cluster working in environment test and I set up nginx + nixy
for service discovery. It is working fine, but when nginx
make a proxy_pass
for docker
container, I receive a 404 error
.
ex: I have a Tomcat
container listen in privateip:37130
, if I configure proxy_pass
for location /
, it is working! If i configure for location /service
, I get the 404 error
code.
Someone have any idea?
My nginx.conf
ANSWER
Answered 2017-Sep-21 at 13:44Change below
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nixy
Install nixy from pre-compiled packages. Check releases page.
Edit config (default on ubuntu is /etc/nixy.toml): # Nixy listening port port = "6000" # X-Proxy header, defaults to hostname xproxy = "" # Marathon API marathon = ["http://example01:8080", "http://example02:8080"] # add all HA cluster nodes in priority order. user = "" # leave empty if no auth is required. pass = "" # Nixy realm, set this if you want to be able to filter your apps (e.g. when you have different loadbalancers which should expose different apps) # You will also need to set "NIXY_REALM" label at your app to be included in generated conf realm = "" # Nginx nginx_config = "/etc/nginx/nginx.conf" nginx_template = "/etc/nginx/nginx.tmpl" nginx_cmd = "nginx" # optionally "openresty" or "docker exec nginx nginx" nginx_ignore_check = false # optionally disable nginx config test. Health check will always show OK. #left_delimiter = "{{" # if you want to change the default template delimiters #right_delimiter = "}}" # if you want to change the default template delimiters # Statsd settings [statsd] addr = "localhost:8125" # optional for statistics #namespace = "nixy.my_mesos_cluster" #sample_rate = 100
Optionally edit the nginx template (default on ubuntu is /etc/nginx/nginx.tmpl)
Install nginx or openresty and start the service. Or if you prefer running inside Docker: "docker run -d --name nginx -p 7000:7000 -v /etc/nginx:/etc/nginx nginx". You will also need to change config "nginx_cmd" to "docker exec nginx nginx" for reloads to work correctly in this case.
Start nixy! (service nixy start)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page