# vim: filetype=jinja server { {% if ipv6 is defined %} listen {{ ipv6 }}; {% endif %} {% if ipv4 is defined %} listen {{ ipv4 }}; {% endif %} {% if server_name is defined %} server_name {{ server_name }}; {% else %} server_name _; {% endif %} ignore_invalid_headers off; # Allow any size file to be uploaded. # Set to a value such as 1000m; to restrict file size to a specific value client_max_body_size 0; # To disable buffering proxy_buffering off; root /var/www/html; location / { try_files $uri @proxy; } location @proxy { proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:9000; } }