Encode symfony database url within nomad template with go

{{ .Data.data.password | urlquery | replaceAll "%" "%%" }}
{{ with secret "secret/data/web/database" }}
DATABASE_URL="mysql://{{ .Data.data.user }}:{{ .Data.data.password | urlquery | replaceAll "%" "%%" }}@{{ .Data.data.vlanIp }}:{{ .Data.data.vlanPort }}/${var.database_name}?serverVersion=5.7"
{{ end }}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store