Traefik-init service generates a dynamic configuration file that contains static configuration elements

Open
#28 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
docker-compose

Research direction

Inspect the traefik-init service and the generated https/dynamic.yml, then compare them with the static Traefik configuration used by Docker Compose. Verify which entrypoints and redirections belong in each configuration scope. Done means a fresh deployment with TRAEFIK_PROTOCOL=https starts without 502 errors and the redirect works correctly.

Written by the indexing model from the issue text.

Description

the traefik-init service attempts to write static configuration (entrypoints and redirections) into a dynamic file provider.
but the issue is that Traefik apparently does not support defining address or redirections within the providers.file scope.
additionally, the redirection logic in the https block is inverted and uses an invalid top-level YAML key (https: instead of http:).
i had a fresh deployments using TRAEFIK_PROTOCOL=https resulting in 502 Bad Gateway and no error logs were produced.

the workaround was to manually recreate https/dynamic.yml removing the https block and and move the http to https redirect to the static Traefik config.

my environment:
Rocket.Chat: 8.3.1
Traefik: v3.4
Docker Compose: 2.34.0
OS: Debian 12 (Bookworm) on Proxmox LXC

Dominant language
Shell
Stars
65
Forks
39
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/rocketchat-compose

All issues in RocketChat/rocketchat-compose

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.