Skip to content

Fixed HTTP Port Mapping - All HTTP requests work on Port 80#1

Merged
maxklema merged 2 commits intomieweb:mainfrom
maxklema:main
Jun 20, 2025
Merged

Fixed HTTP Port Mapping - All HTTP requests work on Port 80#1
maxklema merged 2 commits intomieweb:mainfrom
maxklema:main

Conversation

@maxklema
Copy link
Copy Markdown
Contributor

All container HTTP requests (ie. test-container.opensource.mieweb.com:80) are able to use port 80 instead of unique HTTP ports. Updated the nginx reverse proxy configuration file to proxy pass to $backend_ip:80 instead of $backend_ip:$backend_port. Updated all associated logging, too.

@maxklema maxklema requested a review from cmyers-mieweb June 19, 2025 16:56
@cmyers-mieweb
Copy link
Copy Markdown
Collaborator

Tested against multitimer-dashboard container and confirmed, one thing I will note is on some applications assigning port 80 to an app may require root privileges if ran on a different user, such as meteor. If the container specific HTTP port is no longer being used we will need to remove it from the port_map.js script as well at a future date.

Copy link
Copy Markdown
Collaborator

@cmyers-mieweb cmyers-mieweb left a comment

Choose a reason for hiding this comment

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

Approving, but need to also review port_map.js http port assignment at a later date if it is now obsolete.

@maxklema maxklema merged commit 8640570 into mieweb:main Jun 20, 2025
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