mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	increase nginx timeout. Enable live snapshot.
This commit is contained in:
		
							parent
							
								
									9aed7c7716
								
							
						
					
					
						commit
						4b7554ea14
					
				
					 4 changed files with 16 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -18,25 +18,17 @@
 | 
			
		|||
        <!-- Tab panes -->
 | 
			
		||||
        <div class="tab-content">
 | 
			
		||||
            <div role="tabpanel" class="tab-pane tab-pane-bordered active" id="takesnapshot">
 | 
			
		||||
                {% if instance.status == 5 %}
 | 
			
		||||
                    <p>{% trans "This may take more than an hour, depending on how much content is on your instance and how large the disk is." %}</p>
 | 
			
		||||
                    <form action="{% url 'instances:snapshot' instance.id %}" class="form-inline" method="post" role="form" aria-label="Create snapshot form">
 | 
			
		||||
                        {% csrf_token %}
 | 
			
		||||
                        <div class="form-group row">
 | 
			
		||||
                            <div class="col-sm-12">
 | 
			
		||||
                                <input type="text" class="form-control form-control-lg" name="name" placeholder="{% trans "Enter Snapshot Name" %}" maxlength="14">
 | 
			
		||||
                            </div>
 | 
			
		||||
                <p>{% 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.." %}</p>
 | 
			
		||||
                <form action="{% url 'instances:snapshot' instance.id %}" class="form-inline" method="post" role="form" aria-label="Create snapshot form">
 | 
			
		||||
                    {% csrf_token %}
 | 
			
		||||
                    <div class="form-group row">
 | 
			
		||||
                        <div class="col-sm-12">
 | 
			
		||||
                            <input type="text" class="form-control form-control-lg" name="name" placeholder="{% trans "Enter Snapshot Name" %}" maxlength="14">
 | 
			
		||||
                        </div>
 | 
			
		||||
                        {% if instance.status == 5 %}
 | 
			
		||||
                            <input type="submit" class="btn btn-lg btn-success float-right" name="snapshot" value="{% trans "Take Snapshot" %}">
 | 
			
		||||
                        {% else %}
 | 
			
		||||
                            <button class="btn btn-lg btn-success float-right disabled">{% trans "Take Snapshot" %}</button>
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
                    </form>
 | 
			
		||||
                    <div class="clearfix"></div>
 | 
			
		||||
                {% else %}
 | 
			
		||||
                    <p>{% trans "To take a snapshot please Power Off the instance." %}</p>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <input type="submit" class="btn btn-lg btn-success float-right" name="snapshot" value="{% trans "Take Snapshot" %}" onclick="showPleaseWaitDialog();">
 | 
			
		||||
                </form>
 | 
			
		||||
                <div class="clearfix"></div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div role="tabpanel" class="tab-pane tab-pane-bordered" id="managesnapshot">
 | 
			
		||||
                {% if instance.snapshots %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue