cloudfoundry / cloudfoundry/nginx-buildpack
How to set default value in environment variable in nginx conf file
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 30
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
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.
Expect to happen
Build should be success even environment variable is not setting.
Actual behavior
build is failing in nginx.conf file.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the nginx.conf configuration that reads GZIP_DOWNLOADS and reproduce the build with that environment variable unset. Determine how the nginx configuration handles an empty value, then verify that the build succeeds and uses a valid default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100