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)
Heroku states:
https://help.heroku.com/PPBPA231/how-do-i-use-the-port-environment-variable-in-container-based-apps
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:
https://hub.docker.com/layers/pdftron/webviewer-server/1.5.8/images/sha256-742cbc3536e813f753ed3d407dd212fc47274cc054bc3776e3a760298c73fdba?context=explore
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: