diff --git a/databases/mysql.nomad b/databases/mysql.nomad index 800a9f8..792d609 100644 --- a/databases/mysql.nomad +++ b/databases/mysql.nomad @@ -107,7 +107,6 @@ foreground = yes delay = yes [mysql_server] - accept = {{ env "NOMAD_PORT_tls" }} connect = 127.0.0.1:3306 ciphers = PSK @@ -121,7 +120,7 @@ PSKsecrets = {{ env "NOMAD_SECRETS_DIR" }}/stunnel_psk.txt {{ with nomadVar "nomad/jobs/mysql-server" -}} {{ .allowed_psks }} {{- end }} - EOF +EOF destination = "${NOMAD_SECRETS_DIR}/stunnel_psk.txt" } }