Skip to content

fix(traefik): file provider + panel host resolution for domain routing - #13

Merged
pipozzz merged 1 commit into
mainfrom
fix/traefik-file-provider
Sep 2, 2026
Merged

pipozzz merged 1 commit into
mainfrom
fix/traefik-file-provider

Conversation

@pipozzz

@pipozzz pipozzz commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Found live: setting a domain on the panel did nothing because the Nomad-variant Traefik config only had the consulCatalog provider — so file-based dynamic routes nomploy writes to /etc/nomploy/traefik/dynamic (incl. the panel's own domain) were never loaded. The panel route also targets http://nomploy:3000 (container name), unresolvable on host networking.

  • Add a Traefik file provider (watch) to install.sh and initializeTraefikNomad.
  • Add --add-host nomploy:127.0.0.1 so the panel route resolves to the host-networked app.

Verified on a live server: http→https redirect + panel served on its domain with a valid Let's Encrypt cert.

🤖 Generated with Claude Code

…uting

Setting a domain on the panel (or any file-based dynamic route) had no effect:
the Nomad-variant Traefik config only declared the consulCatalog provider, so the
dynamic config files nomploy writes to /etc/nomploy/traefik/dynamic (e.g. the
panel's own domain router) were never loaded. Also the panel route targets
http://nomploy:3000 (the app container name), which doesn't resolve when Traefik
runs on the host network.

- Add a Traefik 'file' provider (directory watch) in both install.sh and
  initializeTraefikNomad (nomad-setup.ts).
- Add '--add-host nomploy:127.0.0.1' to the Traefik container so the panel route
  resolves to the host-networked app.

Verified live: after this, http→https redirect works and the panel serves on its
domain with a valid Let's Encrypt certificate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pipozzz
pipozzz merged commit fe23ea0 into main Sep 2, 2026
@pipozzz
pipozzz deleted the fix/traefik-file-provider branch September 2, 2026 08:47
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Thank you for your contribution! Please sign our Contributor License Agreement by posting the following comment:


I have read the CLA Document and I hereby sign the CLA


Peter Gonda seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant