mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-20 08:51:16 -05:00
[GH-ISSUE #1221] Can you run Gerbil on a different machine than Pangolin? #1816
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SigmaSquadron on GitHub (Aug 5, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1221
Like #1220, this question also came up when developing the NixOS module for Pangolin.
Gerbil has some configuration options that imply it can be accessed remotely, such as
--reacheableAtandgerbil.base_endpoint, which might mean you can have a self-hosted Pangolin running on a separate environment to Gerbil. (or multiple Gerbils?)If that is the case, what parts of Traefik, if any, need to run on the machine that is running Gerbil? Could the docs be expanded to account for this configuration?
@oschwartz10612 commented on GitHub (Aug 6, 2025):
Hi! Yes you can! Not really multiple gerbils right now. You would need
to do two things: edit the gerbil config in the docker file to have the
reachable at and pangolin endpoints reach the remote pangolin env.
Essentially pangolin and gerbil need to reach each other and this is the
section you put that in.
You still need to run traefik in gerbil because thats the http entry
point into the network. So the change you would need for this is to edit
the traefik config and change the http provider to the remote pangolin
address.
With both of those you should be able to run them separately. Your entry
point for both gerbil and the domain should be pointing to the traefik
gerbil combo and you will access the api separately.
On 8/5/25 16:27, Fernando Rodrigues wrote:
@SigmaSquadron commented on GitHub (Aug 7, 2025):
Okay, so if you have
Machine Arunning Gerbil at198.51.100.1, andMachine Brunning Pangolin atpangolin.example.com, you'd set the--reacheableAttohttps://198.51.100.1:PORT, and--remoteConfigtohttps://pangolin.example.com/api/v1/gerbil/get-config, assuming Pangolin's API is publicly routable. Pangolin can then havegerbil.base_domainset to198.51.100.1, right?This means that Traefik in
Machine B(pangolin) only needs the configuration to expose the dashboard: (and more configuration to publicly expose the API)And Traefik in
Machine A(gerbil) can have this set: (Machine Bwill not have this)My question is mostly about how should I configure Traefik on either machine, and if the snippets above are correct. To be clear, this configuration is completely insane and I'm impressed that it's even supported at all. I don't plan to run it, but I do need to make it available in the NixOS module @jackrosenberg is designing for other users to configure.
@oschwartz10612 commented on GitHub (Aug 7, 2025):
Exactly!
@SigmaSquadron commented on GitHub (Aug 8, 2025):
Awesome! I'll get to work then.