Correcting nginx in haproxy.

This commit is contained in:
Samuel Clay 2021-02-24 20:17:35 -05:00
parent 155f9561db
commit 883cf8005f
2 changed files with 5 additions and 1 deletions

View file

@ -22,3 +22,7 @@
dest: /etc/consul.d/nginx.json
notify:
- reload consul
- name: Restart nginx
become: yes
command: docker restart nginx

View file

@ -77,7 +77,7 @@ backend nginx
balance roundrobin
option httpchk GET /_nginxchk
http-check expect rstatus 200|503
server-template nginx 5 _app-django._tcp.service.nyc1.consul:80 check inter 3000ms resolvers consul resolve-opts allow-dup-ip
server-template nginx 5 _nginx._tcp.service.nyc1.consul:80 check inter 3000ms resolvers consul resolve-opts allow-dup-ip
backend app_django
balance roundrobin