From 193aef3bd66227a54de1a1a34a6bbeccc0267719 Mon Sep 17 00:00:00 2001 From: Balazs Nemeth Date: Fri, 20 Mar 2026 13:27:12 +0100 Subject: [PATCH] F OpenNebula/engineering#768: move "Update apache and nginx templates" commit from fork commit 6439c1dd0b66a623966ba7a8196a6bd48ad055de Author: Alejandro Mosteiro Date: Tue Feb 24 15:57:23 2026 +0100 M #-: Update apache and nginx templates Remove max file size constraint and edit default timeouts to prevent issues when uploading large files to Sunstone Signed-off-by: Balazs Nemeth --- roles/gui/templates/reverse_proxy_ssl_apache2.conf.j2 | 5 +++++ roles/gui/templates/reverse_proxy_ssl_nginx.conf.j2 | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/roles/gui/templates/reverse_proxy_ssl_apache2.conf.j2 b/roles/gui/templates/reverse_proxy_ssl_apache2.conf.j2 index 7be88211..9079a15e 100644 --- a/roles/gui/templates/reverse_proxy_ssl_apache2.conf.j2 +++ b/roles/gui/templates/reverse_proxy_ssl_apache2.conf.j2 @@ -19,6 +19,11 @@ ProxyRequests off ProxyPreserveHost on + # Adjust timeout & file size constraints + LimitRequestBody 0 + Timeout 600 + ProxyTimeout 600 + # no proxy for /error/ (Apache HTTPd errors messages) ProxyPass /error/ ! diff --git a/roles/gui/templates/reverse_proxy_ssl_nginx.conf.j2 b/roles/gui/templates/reverse_proxy_ssl_nginx.conf.j2 index 6792d2f5..62acccc8 100644 --- a/roles/gui/templates/reverse_proxy_ssl_nginx.conf.j2 +++ b/roles/gui/templates/reverse_proxy_ssl_nginx.conf.j2 @@ -20,6 +20,14 @@ server { # No squealing. server_tokens off; + # Adjust timeout & file size constraints + proxy_connect_timeout 600s; + proxy_read_timeout 600s; + proxy_send_timeout 600s; + client_body_timeout 600s; + send_timeout 600s; + client_max_body_size 0; + # Redirect root to /fireedge location = / { return 301 $scheme://$http_host/fireedge;