nginx/ansible-role-nginx-config

proxy_read_timeout issue

Closed this issue · 0 comments

Describe the bug

Based on templates/http/proxy.j2 read_timeout should be boolean. In that case, proxy_read_timeout is set as on/off. Seems like it doesn't make sense and the deployment fails.

To reproduce

Steps to reproduce the behavior:

  1. Set
    proxy:
    read_timeout: on
  2. Deploy NGINX Config role using playbook.yml
  3. View output
  4. See error nginx: [emerg] \“proxy_read_timeout\” directive invalid value in /etc/nginx/conf.d/default.conf

Expected behavior

Directive syntax: proxy_read_timeout time;

Your environment:

  • NGINX Config role version: main
  • Version of Ansible: 2.10.8
  • Target deployment platform: Amazon Linux 2