this post was submitted on 24 Jun 2023
12 points (83.3% liked)

Selfhosted

40757 readers
892 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hi everyone !

I just learned the hardway how important it is to make the difference between ` and ' ...

Tried for 1 whole day to figure out why I got a stupid error in traefik with rule=host(hostname).

While the logs weren't clear about what was raising the error:

error while parsing rule Host('vaultwarden.home.lab'): 1:6: illegal rune literal

I tried alot of different things, from changing the self signed certs, wildcards, adguard DNS rewrite, changing network add some wired traefik rules... To finally compare 2 different yaml files and having that "ahhh..." feeling...

Bit depressing but finally happy to have my own self signed local domain names.

top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 2 years ago (2 children)

Highly recommended a yaml "linter" :)

[–] [email protected] 3 points 2 years ago (2 children)

no that is valid yaml in any case, it's just a traeffic specific rule

[–] [email protected] 1 points 2 years ago

Oh good point.... yaml hard

[–] deepdive 1 points 2 years ago

Good to know :) ! To be more specific, it's a GO syntax ! See @alxx comment !

[–] deepdive 2 points 2 years ago
[–] alxx 1 points 2 years ago (1 children)

This is not Traefik's fault though. It's because of String literals in Go.

[–] deepdive 2 points 2 years ago* (last edited 2 years ago)

Thank you for the insight ! So, I could have used " " instead of ` . Which I normally do, but because I tried to follow the docs blindly, I just used their syntax without questioning the single quotes !