mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-05-03 14:32:10 +07:00
769 B
769 B
Upstream management
nginx_upstreams: List of dict. An upstream has few keys. See bellow.
Note: Few params are unavailable on old Nginx version. But this role do not put it if your version is too old!
Upstream params
name: upstream name. Can be use in vhost with proxy_pass http://upstream_nameparams: list of param (hash, zone...)servers: each upstream MUST have at least 1 server
Server params
You must set a path. For example: 192.168.0.50:8080 or unix:/tmp/my.sock.
All this params are optional. You should see Nginx upstream doc.
weightmax_failsfail_timeoutbackupdownrouteslowstart`