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

feat: ability for aio in sub-path access configurations to specify alternate ports #4480

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

AndrewBastin
Copy link
Member

@AndrewBastin AndrewBastin commented Oct 25, 2024

This PR allows for users to specify alternate ports for AIO container configurations having sub-path access (single port) configurations. The container normally binds port 80 when using single port access, but port 80 is a privileged port and certain systems (esp. rootless systems like Podman or hardened systems like OpenShift) do not provide root level privileges to allow for binding to port 80.

What's changed

  • Added new optional environment variable which is read by AIO container HOPP_AIO_ALTERNATE_PORT which is used by Caddy to define which port is to be bound to. No behaviour change for non-AIO containers.
  • If the variable is not specified, Caddy will use the default port 80.

Notes

@SanskritiHarmukh do remind me to update the docs to add a section for this.

@AndrewBastin AndrewBastin force-pushed the feat/aio-alternate-port branch 2 times, most recently from c032598 to 95ec5f3 Compare October 28, 2024 16:02
@AndrewBastin AndrewBastin merged commit c1bc746 into hoppscotch:next Oct 28, 2024
1 check passed
@AndrewBastin AndrewBastin deleted the feat/aio-alternate-port branch October 28, 2024 18:35
amk-dev pushed a commit to amk-dev/hoppscotch that referenced this pull request Nov 26, 2024
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.

1 participant