mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Added production files
This commit is contained in:
		
							parent
							
								
									3c553e0dad
								
							
						
					
					
						commit
						8e8f300668
					
				
					 6 changed files with 45 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								Vagrantfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								Vagrantfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -6,10 +6,10 @@ Vagrant.configure(2) do |config|
 | 
			
		|||
  config.vm.hostname = "webvirtmgr"
 | 
			
		||||
  config.vm.network "private_network", ip: "192.168.33.10"
 | 
			
		||||
  config.vm.provision "shell", inline: <<-SHELL
 | 
			
		||||
     sudo sh /vagrant/development/libvirt-bootstrap.sh
 | 
			
		||||
     sudo sh /vagrant/dev/libvirt-bootstrap.sh
 | 
			
		||||
     sudo sed -i 's/auth_tcp = \"sasl\"/auth_tcp = \"none\"/g' /etc/libvirt/libvirtd.conf
 | 
			
		||||
     sudo service libvirt-bin restart
 | 
			
		||||
     sudo apt-get -y install python-pip python-dev python-libvirt python-libxml2
 | 
			
		||||
     sudo pip install -r /vagrant/development/requirements.txt
 | 
			
		||||
     sudo pip install -r /vagrant/dev/requirements.txt
 | 
			
		||||
  SHELL
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										23
									
								
								conf/nginx/webvirtcloud.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								conf/nginx/webvirtcloud.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
server {
 | 
			
		||||
    listen 80;
 | 
			
		||||
 | 
			
		||||
    server_name webvirtcloud.example.com;
 | 
			
		||||
    #access_log /var/log/nginx/webvirtcloud-access_log; 
 | 
			
		||||
 | 
			
		||||
    location /static/ {
 | 
			
		||||
        root /var/www/webvirtcloud;
 | 
			
		||||
        expires max;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location / {
 | 
			
		||||
        proxy_pass http://127.0.0.1:8000;
 | 
			
		||||
        proxy_set_header X-Real-IP $remote_addr;
 | 
			
		||||
        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;
 | 
			
		||||
        client_max_body_size 1024M;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										3
									
								
								conf/requirements.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								conf/requirements.txt
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
Django==1.7.7
 | 
			
		||||
websockify==0.6.0
 | 
			
		||||
gunicorn==19.3.0
 | 
			
		||||
							
								
								
									
										17
									
								
								conf/supervisor/webvirtcloud.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								conf/supervisor/webvirtcloud.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
[program:webvirtcloud]
 | 
			
		||||
command=/usr/bin/python /var/www/webvirtcloud/manage.py run_gunicorn -c /var/www/webvirtcloud/conf/gunicorn.conf.py
 | 
			
		||||
directory=/var/www/webvirtcloud
 | 
			
		||||
autostart=true
 | 
			
		||||
autorestart=true
 | 
			
		||||
stdout_logfile=/var/log/supervisor/webvirtcloud.log
 | 
			
		||||
redirect_stderr=true
 | 
			
		||||
user=www-data
 | 
			
		||||
 | 
			
		||||
[program:consoled]
 | 
			
		||||
command=/usr/bin/python /var/www/webvirtcloud/console/consoled
 | 
			
		||||
directory=/var/www/webvirtcloud
 | 
			
		||||
autostart=true
 | 
			
		||||
autorestart=true
 | 
			
		||||
stdout_logfile=/var/log/supervisor/consoled.log
 | 
			
		||||
redirect_stderr=true
 | 
			
		||||
user=www-data
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue