Skip to content

foursixnine/logstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logstore

A simple HTTP server for file storage and retrieval.

Features:

  • POST / to upload a file to the server, storing it with under a random directory
  • POST / a form to upload contents of a file, using contents and filename fields
  • POST /{random_directory} to upload a file to the server, storing it with under a previously created directory or "session"
  • GET /logs/{random_directory}/{filename} to retrieve files
  • GET /d/{random_directory}/tar to retrieve a tar file with contents of the "session"
  • GET /logs/ to get a list of available directories
  • GET / for web UI (HTML or plain text), if it is from a browser, an html form will be displayed
  • Max upload size: 32MB
  • Runs on port 3000, suggested :35900 (See Firewall section)
  • Temporary working directory that auto-cleans on shutdown

No authentication or security features are implemented, functional features only.

Use at your own risk. Not intended for long-term or production use, code quality is questionable.

Firewall

These instructions are mostly for my machine, but should work on yours too:

cp etc/firewalld/services/logstore.xml /etc/firewalld/services
firewall-cmd --reload
firewall-cmd --get-services | grep logstore
firewall-cmd --permanent --zone=libvirt --add-service=logstore
firewall-cmd --permanent --zone=libvirt-routed --add-service=logstore
firewall-cmd --permanent --zone=public --add-service=logstore

About

A simple HTTP server for file storage and retrieval.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages