Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to run behind Traefik reverse proxy? #189

Open
Roger-Roger-debug opened this issue Oct 1, 2024 · 0 comments
Open

Possible to run behind Traefik reverse proxy? #189

Roger-Roger-debug opened this issue Oct 1, 2024 · 0 comments

Comments

@Roger-Roger-debug
Copy link

I'm using Traefik on my server and would like to use it as a reverse proxy for broadcast-box. However, to route network between containers, Traefik needs to share a network, meaning I can't set the network mode to host like in the example config for caddy.

This is what I currently have. It listens for https connections for my.stream.url and routes any connections to the internal 8080 port. It opens up 8080/udp for external connections as well.

With this the webui works, but trying to stream fails. I had hoped that just giving access to 8080/udp would make it work, but that doesn't seem to be the case. Is this even possible without host mode?

version: '3'
 
services:
  broadcast-box:
    container_name: broadcast-box
    hostname: broadcast-box
    image: seaduboi/broadcast-box:latest
    environment:
      - INCLUDE_PUBLIC_IP_IN_NAT_1_TO_1_IP=yes
      - UDP_MUX_PORT=8080
      - NETWORK_TEST_ON_START=true
    ports:
      - 8000:8080/udp
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik_public"
      - "traefik.http.routers.bbox.entrypoints=https"
      - "traefik.http.routers.bbox.rule=Host(`my.stream.url`)"
      - "traefik.http.services.bbox-service.loadbalancer.server.port=8080"
      - "traefik.http.routers.bbox.tls=true"
      - "traefik.http.routers.bbox.tls.certresolver=le"
    networks:
      - traefik_public

 
networks:
  traefik_public:
    external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant