Skip to content

Basic custom configuration settings e.g, extending Nginx timeout

Alex Agranov edited this page Feb 14, 2017 · 1 revision

Here we group some basic related settings into a single file to be included when generating the Nginx configs.

In this case, we've grouped the settings for how long Nginx will wait for a connection/request timeout into a single extended_timeout.conf for development/debugging purposes:

RUN { \
      echo 'proxy_connect_timeout 300;'; \
      echo 'proxy_send_timeout 300;'; \
      echo 'proxy_read_timeout 300;'; \
      echo 'send_timeout 300;'; \
    } > /etc/nginx/conf.d/extended_timeout.conf