Compare commits
	
		
			5 Commits
		
	
	
		
			0ffb3d5261
			...
			20250409
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3c636406af | |||
| 578f1432a0 | |||
| f403c85f0a | |||
| db25c7e426 | |||
| 98b67534cb | 
							
								
								
									
										22
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -36,6 +36,8 @@ steps:
 | 
			
		||||
    path: /usr/local/cargo/registry
 | 
			
		||||
  - name: web_app
 | 
			
		||||
    path: /tmp/web_build
 | 
			
		||||
  - name: release
 | 
			
		||||
    path: /tmp/release
 | 
			
		||||
  depends_on:
 | 
			
		||||
  - backend_check
 | 
			
		||||
  - web_build
 | 
			
		||||
@@ -45,10 +47,30 @@ steps:
 | 
			
		||||
  - mv /tmp/web_build/dist static
 | 
			
		||||
  - cargo build --release
 | 
			
		||||
  - ls -lah target/release/virtweb_backend
 | 
			
		||||
  - cp target/release/virtweb_backend /tmp/release
 | 
			
		||||
 | 
			
		||||
- name: gitea_release
 | 
			
		||||
  image: plugins/gitea-release
 | 
			
		||||
  depends_on:
 | 
			
		||||
  - backend_compile
 | 
			
		||||
  when:
 | 
			
		||||
    event:
 | 
			
		||||
      - tag
 | 
			
		||||
  volumes:
 | 
			
		||||
  - name: release
 | 
			
		||||
    path: /tmp/release
 | 
			
		||||
  environment:
 | 
			
		||||
    PLUGIN_API_KEY:
 | 
			
		||||
      from_secret: API_KEY
 | 
			
		||||
  settings:
 | 
			
		||||
    base_url: https://gitea.communiquons.org
 | 
			
		||||
    files: /tmp/release/*
 | 
			
		||||
    checksum: sha512
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
- name: rust_registry
 | 
			
		||||
  temp: {}
 | 
			
		||||
- name: web_app
 | 
			
		||||
  temp: {}
 | 
			
		||||
- name: release
 | 
			
		||||
  temp: {}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								virtweb_backend/Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								virtweb_backend/Cargo.lock
									
									
									
										generated
									
									
									
								
							@@ -3261,9 +3261,9 @@ dependencies = [
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "sysinfo"
 | 
			
		||||
version = "0.34.1"
 | 
			
		||||
version = "0.34.2"
 | 
			
		||||
source = "registry+https://github.com/rust-lang/crates.io-index"
 | 
			
		||||
checksum = "927fa32067cbb22b8a91987d84c0ff94c7441ccf3f767165a58d77a656d6267c"
 | 
			
		||||
checksum = "a4b93974b3d3aeaa036504b8eefd4c039dced109171c1ae973f1dc63b2c7e4b2"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "libc",
 | 
			
		||||
 "memchr",
 | 
			
		||||
 
 | 
			
		||||
@@ -30,7 +30,7 @@ tempfile = "3.19.1"
 | 
			
		||||
reqwest = { version = "0.12.15", features = ["stream"] }
 | 
			
		||||
url = "2.5.4"
 | 
			
		||||
virt = "0.4.2"
 | 
			
		||||
sysinfo = { version = "0.34.0", features = ["serde"] }
 | 
			
		||||
sysinfo = { version = "0.34.2", features = ["serde"] }
 | 
			
		||||
uuid = { version = "1.16.0", features = ["v4", "serde"] }
 | 
			
		||||
lazy-regex = "3.4.1"
 | 
			
		||||
thiserror = "2.0.12"
 | 
			
		||||
@@ -41,7 +41,7 @@ tokio = { version = "1.44.1", features = ["rt", "time", "macros"] }
 | 
			
		||||
futures = "0.3.31"
 | 
			
		||||
ipnetwork = { version = "0.21.1", features = ["serde"] }
 | 
			
		||||
num = "0.4.3"
 | 
			
		||||
rust-embed = { version = "8.5.0" }
 | 
			
		||||
rust-embed = { version = "8.6.0" }
 | 
			
		||||
mime_guess = "2.0.5"
 | 
			
		||||
dotenvy = "0.15.7"
 | 
			
		||||
nix = { version = "0.29.0", features = ["net"] }
 | 
			
		||||
 
 | 
			
		||||
@@ -17,10 +17,11 @@ pub const ROUTES_WITHOUT_AUTH: [&str; 5] = [
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
/// Allowed ISO mimetypes
 | 
			
		||||
pub const ALLOWED_ISO_MIME_TYPES: [&str; 3] = [
 | 
			
		||||
pub const ALLOWED_ISO_MIME_TYPES: [&str; 4] = [
 | 
			
		||||
    "application/x-cd-image",
 | 
			
		||||
    "application/x-iso9660-image",
 | 
			
		||||
    "application/octet-stream",
 | 
			
		||||
    "application/vnd.efi.iso",
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
/// ISO max size
 | 
			
		||||
 
 | 
			
		||||
@@ -61,7 +61,7 @@ STORAGE=/home/virtweb/storage
 | 
			
		||||
HYPERVISOR_URI=qemu:///system
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
> Note: `HYPERVISOR_URI=qemu:///system` is used to sepcify that we want to use the main hypervisor.
 | 
			
		||||
> Note: `HYPERVISOR_URI=qemu:///system` is used to specify that we want to use the main hypervisor.
 | 
			
		||||
 | 
			
		||||
## Register Virtweb service
 | 
			
		||||
Before registering service, check that the configuration works correctly:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user