To customize nginx when using nginx buildpack, you would need to start with a baseline nginx.conf file which can then be customized to your requirements( for example, to set up proxy). Follow instructions below to get the nginx.conf file.
Note: The instructions below show getting the configuration using staticfile_buildpack, but the staticfile_buildpack itself doesn't detect or allow customization.
Product Version: 2.10
1. Push a static app using staticfile_buildpack as shown below
(base) asomachudan-a01:staticapp asomachudan$ ls Staticfile index.html (base) asomachudan-a01:staticapp asomachudan$ cf push staticapp -b staticfile_buildpack
2. Once the app has started, cf ssh into the app. Then get the nginx.conf file as displayed below.
(base) asomachudan-a01:staticapp asomachudan$ cf ssh staticapp vcap@e92a1a0a-8f06-4f03-4ffc-ad9e:~$ cd /app/nginx/conf vcap@e92a1a0a-8f06-4f03-4ffc-ad9e:/app/nginx/conf$ ls mime.types nginx.conf nginx.conf.erb