mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
App-counts to app-count
This commit is contained in:
parent
caa7e05ee9
commit
39f4d73a13
2 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ groups:
|
|||
app: inventory_hostname.startswith('happ')
|
||||
django: inventory_hostname.startswith('happ-web')
|
||||
refresh: inventory_hostname.startswith('happ-refresh')
|
||||
counts: inventory_hostname.startswith('happ-counts')
|
||||
count: inventory_hostname.startswith('happ-count')
|
||||
push: inventory_hostname.startswith('happ-push')
|
||||
blogs: inventory_hostname.startswith('blog')
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ frontend public
|
|||
use_backend consul_manager if { hdr_end(host) -i consul.newsblur.com }
|
||||
use_backend nginx if mx_mode
|
||||
|
||||
use_backend app_counts if is_unread_count
|
||||
use_backend app_count if is_unread_count
|
||||
use_backend app_refresh if is_refresh_feeds
|
||||
use_backend app_refresh if is_dashboard
|
||||
use_backend app_refresh if is_original_text
|
||||
|
@ -103,11 +103,11 @@ backend app_django
|
|||
server {{host}} {{host}}.node.nyc1.consul:8000
|
||||
{% endfor %}
|
||||
|
||||
backend app_counts
|
||||
backend app_count
|
||||
balance roundrobin
|
||||
option httpchk GET /_haproxychk
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.counts %}
|
||||
{% for host in groups.count %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:8000
|
||||
{% endfor %}
|
||||
# server-template app-counts 1 _app-counts._tcp.service.nyc1.consul:8000 check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
|
Loading…
Add table
Reference in a new issue