From 14b23544e42a0ef3e773fa7efd3703dbf130396d Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 13 Feb 2022 09:48:33 +0000 Subject: [PATCH] Add note about running grpc behind a proxy and combining ports --- docs/remote-cli.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/remote-cli.md b/docs/remote-cli.md index 5ba27ee0..3b1dc845 100644 --- a/docs/remote-cli.md +++ b/docs/remote-cli.md @@ -82,6 +82,13 @@ headscale nodes list You should now be able to see a list of your nodes from your workstation, and you can now control the `headscale` server from your workstation. +## Behind a proxy + +It is possible to run the gRPC remote endpoint behind a reverse proxy, like Nginx, and have it run on the _same_ port as `headscale`. + +While this is _not a supported_ feature, an example on how this can be set up on +[NixOS is shown here](https://github.com/kradalby/dotfiles/blob/4489cdbb19cddfbfae82cd70448a38fde5a76711/machines/headscale.oracldn/headscale.nix#L61-L91). + ## Troubleshooting Checklist: