psf / httpbin

HTTP Request & Response Service, written in Python + Flask.
https://httpbin.org
Other
54 stars 17 forks source link

Allow starting the process on a non-provileged port #2

Closed exhuma closed 1 year ago

exhuma commented 1 year ago

Currently, port 80 is hard-coded. This is no allowed on some deployment environments (f.ex. OpenShift).

Please provide a way to change that port upon startup. For example using an environment variable.

exhuma commented 1 year ago

I'm currently working on a PR but the docker build process seems broken. I'll try to get that working and add it into the same branch if that's okay.

exhuma commented 1 year ago

Added in PR #4

kevin1024 commented 1 year ago

Thanks for your contribution! PR has been merged.