www/redmine (+ nginx, passenger) any better way to provide $PATH for web application plugin executables?

When using a redmine plugin that utilises executables from other ports, in the OOB installation those executables won't be found because the default $PATH passed to nginx doesn't include /usr/local/bin. The only work-around I'm aware of is to add nginx_env="PATH=\$PATH:/usr/local/bin" to /etc/rc.conf
This means that the entire nginx instance sees the modified path.

Is anyone aware of a better method to provide an appropriate $PATH directly to (say) a passenger(?) app, rather than having to pass it to nginx?

I'm running into this when using the redmine plugin redmine_more_previews which uses e.g. libreoffice, imagemagick, etc, to provide previews of files/documents attached to issues.
 
Thanks. Tried it and appears to be working.

Looks like an absolute value for PATH has to be set with that? Can't use it to append to the existing $PATH?
 
Back
Top