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