cloudfoundry / nginx-buildpack

Cloud Foundry buildpack that provides NGINX
Apache License 2.0
30 stars 66 forks source link

How to set default value in environment variable in nginx conf file #310

Open nvignesh86 opened 1 month ago

nvignesh86 commented 1 month ago

CLI Version: 8.7

Build pack 1.25.5

We are using enviornment value in nginx conf file. some how environment variable empty or null scenario build is failing. because of "gzip [Not setting any value]". nginx conf format wrong.

Need to give default value for GZIP_DOWNLOADS while fetching in nginx.conf. Can you please let us know how to give default value for.

image

Expect to happen Build should be success even environment variable is not setting.

Actual behavior build is failing in nginx.conf file.