fix(escape): Escape double quotes and all other characters reliably

This commit is contained in:
Paul Gabriel
2023-02-20 16:49:47 +01:00
parent 25e8b91569
commit f81ba12aa5
3 changed files with 8 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ class Mrsk::Configuration::Role
def traefik_labels
if running_traefik?
{
"traefik.http.routers.#{config.service}.rule" => 'PathPrefix(\`/\`)',
"traefik.http.routers.#{config.service}.rule" => "PathPrefix(`/`)",
"traefik.http.services.#{config.service}.loadbalancer.healthcheck.path" => config.healthcheck["path"],
"traefik.http.services.#{config.service}.loadbalancer.healthcheck.interval" => "1s",
"traefik.http.middlewares.#{config.service}.retry.attempts" => "3",