Add dummy stunnel server to blocky
Hopefully this keeps the stunnel instance from failing if mysql and redis are both unavailable
This commit is contained in:
parent
98c547ebdf
commit
f5a180f019
@ -269,6 +269,13 @@ syslog = no
|
|||||||
foreground = yes
|
foreground = yes
|
||||||
delay = 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" -}}
|
{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "mysql-tls" -}}
|
||||||
[mysql_client]
|
[mysql_client]
|
||||||
client = yes
|
client = yes
|
||||||
|
Loading…
Reference in New Issue
Block a user