earvingad / earvingad.github.io

Own blog
https://earvingad.github.io/
3 stars 0 forks source link

headscale post feedback #1

Closed 7kn closed 8 months ago

7kn commented 1 year ago

Hi there.

Initially wanted to create a PR and fix the following myself but I think the repo only contains the generated hugo files and not the source files so here's an issue instead.

I noticed a few things in your headscale post that I'd like to pass along as feedback (thanks for creating that post btw!)

  1. the title Intallis missing the letter s
  2. tls_letsencrypt_cache_dir: is currently set to /var/lib/headscale/cache by default already and not ./cache anymore
  3. After stap 8 you'll need to run sudo mkdir -p /var/run/headscale, otherwise you'll run into the error headscale can't start due to the directory not existing and being unable to create headscale.sock

2023-06-16T14:05:59+02:00 FTL ../runner/work/headscale/headscale/cmd/headscale/cli/server.go:26 > Error starting server error="failed to set up gRPC socket: listen unix /var/run/headscale/headscale.sock: bind: no such file or directory"
[user@host ~]$ sudo mkdir -p /var/run/headscale/
[user@host ~]$ sudo /usr/local/bin/headscale serve
2023-06-16T14:06:24+02:00 INF Setting up a DERPMap update worker frequency=86400000
2023-06-16T14:06:24+02:00 WRN Listening with TLS but ServerURL does not start with https://
2023-06-16T14:06:24+02:00 INF Enabling remote gRPC at 127.0.0.1:50443
earvingad commented 1 year ago

Hello, thanks for the feedback. The mentioned changes in the config were added after this post was published. I have updated the guide, thanks for your comments. I hope this has been helpful to you. Best regards.

7kn commented 1 year ago

You're welcome, it's definitely been helpful so I'm happy to be able to give some feedback. Thanks for the tutorial/write up!