#web-server #binaries #host #binary #toml #run #website

app roast-bin

Web based server handler for ANY runnable file!

6 releases

0.3.0 Mar 20, 2024
0.2.3 Mar 4, 2024
0.2.1 Jan 31, 2024
0.1.1 Jan 26, 2024

#255 in HTTP server

Download history 25/week @ 2024-01-26 195/week @ 2024-03-01 40/week @ 2024-03-08 123/week @ 2024-03-15 25/week @ 2024-03-22 41/week @ 2024-03-29

242 downloads per month

MIT/Apache

23KB
587 lines

What is roast?

Roast is a binary that allows you to host other binaries as a website!

Why Might I Want It?

I originally made it for myself, as a binary that would allow me to host a minecraft server, and allow my friends to open the server with the main_user and main_pass

Installation

Currently, running cargo install roast-bin is the only way to get the program.

Usage

Typing roast, it will attempt to run your server.

However, without having both a roast-options.toml file, a runnable script, and cert.pem and key.pem, the server will be unable to run. In whatever directory you want to host your server, you can type

roast --gen-tls # This will generate the cert.pem and key.pem files.
roast --gen-config # This will put an EXAMPLE config file into your directory (Please change the passwords at least.)

After running these two commands, open the config with your favorite text editor, and change some of the parameters.

Running a Server

Ok, so now that you have your server ready to run, how do I run it? In the roast-options.toml file you have, change the run path to be to a local script folder which runs your server.

Example for a minecraft server:

java -jar server.jar

Put this into a script file, and change the run path to be the location of the file!

Dependencies

~27–63MB
~1M SLoC