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

Allow Listening to Specific Hosts #48

Merged
merged 4 commits into from
Apr 3, 2020

Conversation

lkiesow
Copy link
Contributor

@lkiesow lkiesow commented Mar 26, 2020

This patch allows to listen to a specific host only.

For example, when BigBlueButton is used behind Nginx as reverse Proxy,
it is completely sufficient to listen to 127.0.0.1 only, but right now
there is now easy way to configure that.

Note that this patch does not change the default and still works with
the previous configuration making updates easy.

This patch allows to listen to a specific host only.

For example, when BigBlueButton is used behind Nginx as reverse Proxy,
it is completely sufficient to listen to 127.0.0.1 only, but right now
there is now easy way to configure that.

Note that this patch does not change the default and still works with
the previous configuration making updates easy.
This patch allows to have mcs-core listen to a specific host only.
@prlanzarin prlanzarin self-requested a review March 27, 2020 00:56
@prlanzarin
Copy link
Member

@lkiesow thanks for the PR. Agree with the premise, it was an oversight. I'll review and test it.

@lkiesow
Copy link
Contributor Author

lkiesow commented Mar 27, 2020

For the packages, this should probably even be configured to 127.0.0.1 since these are running behind Nginx as reverse proxy anyway. Not sure if you are involved in the packaging though.

@prlanzarin
Copy link
Member

prlanzarin commented Mar 27, 2020

@lkiesow most of the default configs are piped through the packaging stuff, so it'll probably stay as localhost as in your PR.

By the way, we also require a signed Contributor License Agreement from new people making contributions to BBB and its related components. See http://docs.bigbluebutton.org/support/faq.html#why-do-i-need-to-sign-a-contributor-license-agreement-to-contribute-source-code.

Copy link
Member

@prlanzarin prlanzarin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lkiesow can you please add environment variable mappings for the new configs you added (clientHost and mcs-host) in /config/custom-environment-variables.yml? Thanks.

lkiesow added 2 commits March 28, 2020 01:37
This patch changes the default configuration so bbb-webrtc-sfu is only
listening to 127.0.0.1 which is enough in the usual environment since it
is proxied by Nginx anyway.
This patch adds environment variables to easily change the configuration
so that, for example, bbb-webrtc-sfu does not listen only to locahost
anymore.
@lkiesow
Copy link
Contributor Author

lkiesow commented Mar 28, 2020

Hi @prlanzarin, thanks for the review. I've sent a CLA to Fred though he seems to be pretty under right now. I've also added two commits incorporating your suggestions:

  • Added environment variables to control the new settings
  • Made listening to 127.0.0.1 the default as it should be sufficient in most cases (especially the default packaging) and usually goes into packaging unmodified if I understood you correctly

@lkiesow
Copy link
Contributor Author

lkiesow commented Apr 3, 2020

Hi @prlanzarin, is anything else missing here?

Copy link
Member

@prlanzarin prlanzarin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. Tested it. Looks good.

@prlanzarin prlanzarin merged commit 6a6425a into bigbluebutton:master Apr 3, 2020
This was referenced Apr 6, 2020
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

Successfully merging this pull request may close these issues.

2 participants