Rendertron needs to run behind an HTTP proxy

276 Views Asked by At

I have a scenario that Rendertron services need to run behind an HTTP proxy. I am not able to find the configuration that enables this setup.

Is it possible to achieve that?

1

There are 1 best solutions below

0
Yuci On BEST ANSWER

It seems there is no straight way to achieve it right now. What you can possible do is to change its source code until there is a new version of Rendertron that supports running it behind an HTTP proxy.

You can add an additional argument when launching the headless browser puppeteer as below, in src/rendertron.ts

And when starting Rendertron, be sure to pass in the environment variable RENDERTRON_HTTP_RPOXY. See this open GitHub pull request for details.

It is also possible to specify puppeteer arguments in config, see another open GitHub pull request.