Skip to content

Using a reverse proxy #104

Open
Open

Description

@leon1995

I am using a reverse proxy. which containers do I have to put behind it, because they may be called via port 80 or 443?

Activity

  1. dsjiern commented on May 7, 2021

    @dsjiern

    Hey,

    i'm using traefik with this docker-compose.override.yml:

    services:
      nginx:
        labels:
          - "traefik.enable=true"
          - "traefik.http.routers.bbb.entrypoints=http"
          - "traefik.http.routers.bbb.rule=Host(`bbb.example.com`)" # ADJUST DOMAIN HERE
          - "traefik.http.middlewares.bbb-https-redirect.redirectscheme.scheme=https"
          - "traefik.http.routers.bbb.middlewares=bbb-https-redirect"
          - "traefik.http.routers.bbb-secure.entrypoints=https"
          - "traefik.http.routers.bbb-secure.rule=Host(`bbb.example.com`)" # ADJUST DOMAIN HERE
          - "traefik.http.routers.bbb-secure.tls=true"
          - "traefik.http.routers.bbb-secure.tls.certresolver=http"
          - "traefik.http.routers.bbb-secure.service=bbb"
          - "traefik.http.services.bbb.loadbalancer.server.port=8080"
          - "traefik.docker.network=proxy"
        networks:
          - proxy
          - bbb-net
    
    networks:
      proxy:
        external: true
    

    additionaly in docker-compose.yml I hat do remove in the nginx-service the line

    network_mode: host
    

    (I can't figure it out, how to ignore the netork_mode settings with the docker-compose.override.yml...)

  2. leon1995 commented on May 8, 2021

    @leon1995
    Author

    ok thanks! I will look into it :)

  3. joergmschulz commented on Jun 2, 2021

    @joergmschulz

    did this work for you? Here, some services can't be connected, and the logging shows that 8888 / kurento wants to be connected via the outside interface (as opposed to the docker internal interface).
    Which additional setup / changes did you apply? Which addresses did you enter during the setup process? The external or the internal addresses?

  4. dsjiern commented on Jun 2, 2021

    @dsjiern

    Yes, this works perfectly for me on 4 servers!

    I just added the above docker-compose.override.yml and deleted the network_mode: host from the docker-compose.yml in the nginx-section. Nothing else!

    I entered the external IP of course.

    An additional, external TURN-server is specified but not used (about:webrtc in Firefox shows a direct connection to the BBB-Server)

  5. joergmschulz commented on Jun 4, 2021

    @joergmschulz

    Confirm - you are a hero. The reason for my issues has been the firewall setup. Have yet to figure out the correct ufw settings / a search in this issue list helped: ufw allow from 10.7.7.0/24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions