diff --git a/README.md b/README.md index d40bbbe..637fef2 100644 --- a/README.md +++ b/README.md @@ -196,9 +196,9 @@ server { proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-Proto $remote_addr; - proxy_connect_timeout 600; - proxy_read_timeout 600; - proxy_send_timeout 600; + proxy_connect_timeout 1800; + proxy_read_timeout 1800; + proxy_send_timeout 1800; client_max_body_size 1024M; } } diff --git a/conf/nginx/webvirtcloud.conf b/conf/nginx/webvirtcloud.conf index d4420b6..d16a814 100644 --- a/conf/nginx/webvirtcloud.conf +++ b/conf/nginx/webvirtcloud.conf @@ -16,9 +16,9 @@ server { proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-Proto $remote_addr; proxy_set_header X-Forwarded-Ssl off; - proxy_connect_timeout 600; - proxy_read_timeout 600; - proxy_send_timeout 600; + proxy_connect_timeout 1800; + proxy_read_timeout 1800; + proxy_send_timeout 1800; client_max_body_size 1024M; } diff --git a/instances/templates/instances/snapshots_tab.html b/instances/templates/instances/snapshots_tab.html index 46f6049..56d012b 100644 --- a/instances/templates/instances/snapshots_tab.html +++ b/instances/templates/instances/snapshots_tab.html @@ -18,25 +18,17 @@
- {% if instance.status == 5 %} -

{% trans "This may take more than an hour, depending on how much content is on your instance and how large the disk is." %}

-
- {% csrf_token %} -
-
- -
+

{% trans "This may take more than an hour, depending on how much content is on your instance and how large the disk is. It could cause web server timeout.." %}

+ + {% csrf_token %} +
+
+
- {% if instance.status == 5 %} - - {% else %} - - {% endif %} - -
- {% else %} -

{% trans "To take a snapshot please Power Off the instance." %}

- {% endif %} +
+ + +
{% if instance.snapshots %} diff --git a/instances/views.py b/instances/views.py index ae2e82e..c093f5f 100644 --- a/instances/views.py +++ b/instances/views.py @@ -1063,11 +1063,7 @@ def clone(request, pk): } messages.error(request, msg) elif check_instance: -<<<<<<< HEAD msg = _("Instance '%(clone_name)s' already exists!") % {"clone_name": clone_data["name"]} -======= - msg = _("Instance '%(clone_name)s' already exists!") % {'clone_name': clone_data['name']} ->>>>>>> 159e06221af435700047a8e5ababe758a12d7579 messages.error(request, msg) elif not re.match(r"^[a-zA-Z0-9-]+$", clone_data["name"]): msg = _("Instance name '%(clone_name)s' contains invalid characters!") % {"clone_name": clone_data["name"]}