Product: Webviewer Server
Product Version: pdftron/webviewer-server:1.5.8
Please give a brief summary of your issue:
(Think of this as an email subject)
Heroku assigns ports dynamically at runtime. PDFTron webviewer server exposes a fixed port, 8090. Would appreciate any advice or suggestions on how to dynamically configure the webviewer server port.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
When deploying a container app on Heroku, we require that Dockerfiles are configured to intake the randomly assigned port on a dyno - exposed as the $PORT environmental variable.
However Webviewer Server only exposes 8090:
We’re currently using
socat to forward connections to port 8090 but would appreciate any suggestions on how to dynamically configure the port
Please provide a link to a minimal sample where the issue is reproducible: