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

Make listening on HTTPS port configurable (for Podman rootless) #801

Open
tonchikk opened this issue Nov 26, 2024 · 1 comment
Open

Make listening on HTTPS port configurable (for Podman rootless) #801

tonchikk opened this issue Nov 26, 2024 · 1 comment

Comments

@tonchikk
Copy link

tonchikk commented Nov 26, 2024

Hi Team,

echo "Listen 443" >> /etc/apache2/ports.conf

Let's substitute 443 with ${HTTPSPORT:-443}

Same I've already done for unencrypted port:

$ vim env
$ cat env
PORT=9080
$ podman run --env-file=env -d -p 9080:9080 jhpyle/docassemble
3f563d9838b402d6a810af52694ca310f0314fe198616890a10f81e4af110941
$ podman ps
CONTAINER ID  IMAGE                                COMMAND               CREATED        STATUS        PORTS                   NAMES
3f563d9838b4  docker.io/jhpyle/docassemble:latest  /usr/bin/supervis...  7 seconds ago  Up 7 seconds  0.0.0.0:9080->9080/tcp  relaxed_darwin
@tonchikk tonchikk changed the title Make listening on HTTPS port configurable for Podman rootless Make listening on HTTPS port configurable (for Podman rootless) Nov 26, 2024
@jhpyle
Copy link
Owner

jhpyle commented Nov 29, 2024

That line relates to the legacy Apache configuration, which isn't really used anymore. NGINX is the default web server now, and the NGINX configuration exists in other files.

I'm not sure why it matters what ports the container uses internally when you can remap the ports on the external side of the container. You can use -p 9080:80 and/or -p 9443:443 and podman will have no trouble binding to those ports in user mode.

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

No branches or pull requests

2 participants