2
0
mirror of https://github.com/xvxx/phd synced 2024-11-04 18:00:22 +00:00
Go to file
2019-12-27 15:42:57 -08:00
src lean on GopherMap 2019-12-27 15:42:57 -08:00
.gitignore skeleton 2019-12-22 18:05:48 -08:00
Cargo.lock lean on GopherMap 2019-12-27 15:42:57 -08:00
Cargo.toml lean on GopherMap 2019-12-27 15:42:57 -08:00
README.md skeleton 2019-12-22 18:05:48 -08:00

      /       |
 ___ (___  ___|
|   )|   )|   )
|__/ |  / |__/
|

dirt simple gopher server.

todo

  • serve directory listing
  • serve text file
  • serve binary (mp3, exe)
  • index.gophermap
  • footer.gophermap
  • header.gophermap

usage

phd [options] <directory>

phd ./path/to/gopher/root    # Serve directory over port 70.
phd -p 7070 docs             # Serve 'docs' directory on port 7070
phd -h localhost             # Serve cwd using hostname "localhost".

development

cargo run -- ./path/to/gopher/site

resources