collabvm 1.2 server written in rust (for learning and fun)
Find a file
2024-03-28 11:02:14 -04:00
src chore: init, very barren 2024-03-28 11:02:14 -04:00
.gitignore chore: init, very barren 2024-03-28 11:02:14 -04:00
Cargo.lock chore: init, very barren 2024-03-28 11:02:14 -04:00
Cargo.toml chore: init, very barren 2024-03-28 11:02:14 -04:00
README.md chore: init, very barren 2024-03-28 11:02:14 -04:00
rustfmt.toml chore: init, very barren 2024-03-28 11:02:14 -04:00

cvm1.2-rs

Stopgap part 4. Mostly made as a experiment, and maybe for production use?.

Usage

There is none, at the moment. Once there is, there will be actual documentation here.

Noodling for configuration

collabvm.toml

[collabvm]
listen = "127.0.0.1:3000" # or /run/cvm.sock ? if warp supports uds i guess

# optional
vm_directory = "vms"

# nested table. you can define it non-nested if you want
mod_permissions = { xxx = true, xyz = false }

mod_password_hash = "argon2 hash"
admin_password_hash = "argon2 hash"

# applied to vms by default unless they override
default_motd = "hice powered vms"

ban_command = "sexy $user $ip"

vms/vm1.toml

[vm]
name = "Window XP have honse (VM 1)"

# cvm1.2-rs will automatically append parameters as needed
command_line = "./vm1.lvm start"

motd = "YOU HAVE FUCKER GOOGLE FROM 999999999.. Banned!"

Building

cargo b --release

Unit tests can be run with cargo test, as is for most rust programs...