Skip to content

raineycat/gleam-ftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gleam FTP Server

Version License

A simple FTP server written in Gleam

# Run the server with some example arguments
gleam run -- --port 2100 --base-dir ./data --welcome "My FTP Server" --allowed-logins "me:hunter2"

Available options:

  • --address: The address to bind to (default: 0.0.0.0)
  • --port: The port the server listens on (default: 21)
  • --welcome: The welcome message to send to clients (default: GleamFTP Server)
  • --external-address: The public IP of the server, sent to clients when connecting with passive mode (default: 127.0.0.1)
  • --base-dir: The directory to serve files from (default: .)
  • --allowed-logins: A list of users and passwords to authorise logins against. Format: username:password,user2:pass2 (default: root:root)
  • --passive-port: The port to listen to passive connections on. Can be 0 to select a random port (default: 20)

Available flags:

  • --allow-anon: Allows anonymous connections to the server
  • --anons-can-write: Allow anonymous clients to create/write/delete files on the server; by default they have read-only access
  • --read-only: Rejects create/write/delete actions sent by clients
  • --help: Shows more info about the command line options

About

An FTP server written in Gleam

Resources

License

Stars

Watchers

Forks

Languages