cloudfoundry / cloudfoundry/nginx-buildpack

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

Open
#310 0 comments 0 reactions 0 assignees View on GitHub

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.

image

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

Actual behavior
build is failing in nginx.conf file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.