Moving favicon servers in haproxy

This commit is contained in:
Samuel Clay 2023-11-10 17:14:09 -05:00
parent ed1a2c40eb
commit 1f74f1a09f
2 changed files with 5 additions and 2 deletions

View file

@ -178,7 +178,10 @@ backend node_favicons
http-check expect rstatus 200|503
option httpchk GET /rss_feeds/icon/1
balance roundrobin
server-template node-favicons 1 _node-favicons._tcp.service.nyc1.consul:8008 check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
{% for host in groups.node_favicons %}
server {{host}} {{host}}.node.nyc1.consul:8008
{% endfor %}
backend node_text
http-check expect rstatus 200|503

View file

@ -6,7 +6,7 @@ RUN apt install -y curl
# Install Java
# Install OpenJDK-11
RUN apt install -y openjdk-11-jre-headless
RUN apt install -y default-jre
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
RUN export JAVA_HOME
WORKDIR /tmp