Skip to content

Format traefik app routers to display syntax highlight correct #85

@Tenyun

Description

@Tenyun

Problem or Motivation

When i open the traefik router app files in my editor(neovim) the syntax highlight is messed up because quotes are used in the wrong way.

the line
rule: "Host(deployrr.{{env "DOMAINNAME_1"}})"
should be reformatted to show syntax highlighting correct.

Image

This could lead people into changing something where it is not necessary.

Proposed Solution

Change the syntax from this
rule: "Host(deployrr.{{env "DOMAINNAME_1"}})"
to this
rule: 'Host(deployrr.{{env "DOMAINNAME_1"}})'

Image

Alternatives Considered

Additional Context

In v6 the permissions of the app-appname.yml changed from user:user to root:user so I can no longer change them remotely on my workstation. But i often use my workstation editor to remotely look into the files.
I changed this line in all my services and had no issues so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions