Skip to content

Problem for working on local zone #361

Open

Description

@arynishere

We have an internal server at the company with a local IP of 172.16.x.x. We exposed this server through the firewall to a public IP, and I set this public IP to bbb in the .env file, but it's not working. Why?

Activity

  1. ben-ba commented on Jun 26, 2025

    @ben-ba
    Contributor

    so u can't use letsencrypt directly on this server?

    if yes:

    1. create certs
    2. update your haproxy/bootstrap.sh, so you can use your certs

    gerneral:

    u have to access your server by fqdn

    please be specific with you issue

    e.g. can you reach the haproxy/nginx?, all containers running? sth in the logs? (docker compose logs -f

  2. LeYom commented on Jul 24, 2025

    @LeYom

    Hi,

    To solve this, I followed what @ben-ba described.

    1. Edit the file docker-compose.yml
      haproxy:
        build: mod/haproxy
        image: alangecker/bbb-haproxy:2.8.10
        volumes:
          - /path/to/mydomaincert/fullchain.pem:/etc/haproxy/certs/haproxy-10.7.7.1.pem
          - /path/to/mydomaincert/privkey.pem:/etc/haproxy/certs/haproxy-10.7.7.1.pem.key
          - ./mod/haproxy/bootstrap.sh:/bootstrap.sh
          …
    1. Edit the file mod/haproxy/bootstrap.sh like this (ommitting the call to letsencrypt API)
    #!/usr/bin/env bash
    
    set -e
    
    # save container environment variables to use it
    # in cron scripts
    
    declare -p | grep -Ev '^declare -[[:alpha:]]*r' > /container.env
    
    # go!
    supervisord -c /etc/supervisord.conf -n
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