Kong - NGINX Envs Variables reference

Hi,

I’m encountering an issue with configuring the NGINX timeout to 120 seconds in a setup using Kong and Docker-Swarm. Specifically, I would like to know how to set the NGINX timeout via an environment variable in the Docker Compose file.

Could someone guide me on how to achieve this?

Thanks in advance for your help!

Hi There @Max_Galeano

You can inject nginx directives by passing in as environment variables (note all CAPS).

Thanks
-Veena

Hi @Veena_Rajarathna

I’ll try these, but they seem to have no effect when setting these attributes through the Kong compose file.

ill use like this

 - KONG_PROXY_TIMEOUT=120000  
 - 

can you give an feedback about if this attribute is correct or what is the correct env variable ?

Can you try with this format KONG_NGINX_directive_name ?

@JohnWilliams Thanks a lot, John! I will try this in a lab environment and get back to you.