Open rbackert opened 4 weeks ago
What version of the nginx plugin are you running @rbackert? Running lando version --all | grep '@lando/nginx'
should show you.
I know we removed the render-template
functionality and then re-added it in v1.0.0, so presumably a bug if you're running v1.1.0 (which I would anticipate is the case).
Yep, I'm running v1.1.0
.
If using Handlebars in a custom vhosts config is supposed to work, consider this issue a bug. If it's not, consider this issue a feature request.
Some of my custom vhosts configs use Handlebars syntax, as supported by https://github.com/bitnami/render-template and seen in https://github.com/lando/nginx/blob/main/config/nginx.conf.tpl. These configs worked before upgrading to lando 3.21, but not afterwards. It looks like the
sed
is processing the vhosts config instead ofrender-template
, even thoughrender-template
is available. Relevant lines from container logs:All is well if start the app without custom config, run
render-template "/path/to/custom-vhosts.conf.tpl" > /opt/bitnami/nginx/conf/vhosts/lando.conf
inside the container, and restart nginx.