Skip to content

HTTP server in the browser. Inspired by TheWaWaR's version.

License

Notifications You must be signed in to change notification settings

aleferu/nas-at-home

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nas-at-home

HIGHLY inspired by TheWaWaR's version of the software: simple-http-server. Please make sure to take a look at his work before looking more into mine.

My goal is to build something similar without taking a look at his code (I can look at the html my browser receives). Bare in mind this is my first time using http and/or html + css...

Disclaimer

Use at your own risk. No security is implemented.

Dependencies

Installation

$ cargo build --release

Usage

You can run the program using cargo or executing the binary:

$ cargo run --release

$ ./target/release/nas-at-home

Help text:

$ ./nas-at-home --help
Usage: nas-at-home [FLAGS] [OPTIONS]

FLAGS:
  --help     Prints this, nothing else happens.
OPTIONS");
  --ip       Sets the ip for the TCP Listener, 127.0.0.1 is the default value.
             Example: --ip 127.0.0.1
  --port     Sets the port for the TCP Listener, 8080 is the default value.
             Example: --port 8080
  --path     Sets the root folder, . is the default value.
             Example: --path /home/
  --threads  Sets the number of threads in the thread pool.
             Example: --threads 5
             Number of physical cpus is the default value.

An example would be:

$ ./nas-at-home --ip 127.0.0.1 --port 8080 --path /home/user/ --threads 10

If you dont specify a custom path, the current folder will be selected as root.

Contact

Feel free to contact me if you encounter any issue.

About

HTTP server in the browser. Inspired by TheWaWaR's version.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages