From f5a180f019cab05487fd94e27f6afc0c17953de5 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 30 Aug 2024 11:13:53 -0700 Subject: [PATCH] Add dummy stunnel server to blocky Hopefully this keeps the stunnel instance from failing if mysql and redis are both unavailable --- core/blocky/blocky.nomad | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/blocky/blocky.nomad b/core/blocky/blocky.nomad index c7bbddd..31fd76a 100644 --- a/core/blocky/blocky.nomad +++ b/core/blocky/blocky.nomad @@ -269,6 +269,13 @@ syslog = no foreground = yes delay = yes +[dns_server] +# Dummy server to keep stunnel running if no mysql is present +accept = 8053 +connect = 127.0.0.1:53 +ciphers = PSK +PSKsecrets = {{ env "NOMAD_SECRETS_DIR" }}/mysql_stunnel_psk.txt + {{ range nomadService 1 (env "NOMAD_ALLOC_ID") "mysql-tls" -}} [mysql_client] client = yes