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

Support custom port for Calls #139

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Support custom port for Calls #139

merged 1 commit into from
Oct 11, 2023

Conversation

streamer45
Copy link
Contributor

Summary

I realized that the way this was set we weren't really supporting anything other than the default 8443. Now we rewrite the port on both sides so that it's forwarded correctly.

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Oct 10, 2023
@streamer45 streamer45 self-assigned this Oct 10, 2023
Comment on lines +32 to +33
- ${CALLS_PORT}:${CALLS_PORT}/udp
- ${CALLS_PORT}:${CALLS_PORT}/tcp
Copy link
Member

Choose a reason for hiding this comment

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

One qq for my own learning: if you don't set this var, what does docker-compose do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cpoile There is a default so one would have to explicitly unset it. But if you did then you'd get a bunch of warnings and eventually a failure:

WARNING: The CALLS_PORT variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker-compose.nginx.yml' is invalid because:
services.mattermost.ports contains an invalid type, it should be a number, or an object
services.mattermost.ports contains an invalid type, it should be a number, or an object

@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Oct 11, 2023
@streamer45 streamer45 merged commit 50b14ba into main Oct 11, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants