Skip to content

western/http-here

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-here

Share folder via http with upload

Multiple files upload to current showed folder

In extended mode you can doing more

Mobile screen

Install from github

go install github.com/western/http-here@latest

Manual download

linux / amd64

# go to your home bin
cd ~/bin

# download and unpack
wget https://github.com/western/http-here/releases/download/v1.9.2/http-here.gz
gzip -d http-here.gz

chmod +x http-here

Run

http-here /tmp

or

http-here --port 7999 /path/to/folder

If you switch --extend-mode

http-here --extend-mode /tmp

App will change main list view to table. And you can operate with files - delete, move, copy

Below you see display width more than 992 pix (1), less than (2) and mobile window (3):

Important

During group operations COPY or MOVE all target files/folders will be rewrite

Preview doc button

For Thumbnails support read below

Basic auth

Important

It is recommend for work on public network interfaces

every time when you start, you get a list of random accounts

http-here --basic .

or only one basic auth specific user

http-here --user loginXX --password MugMf7AHs .

The safest run

http-here --tls --basic /path/to/you

read for TLS Support below

Only share

http-here --upload-disable --folder-make-disable /tmp/fold

Run with prefork

Prefork help to handle with multiple heavy query (big image gallery as example)

http-here --prefork --extend-mode /tmp

If you run --prepare-thumbnails one time you maybe not need prefork

http-here --prepare-thumbnails --extend-mode /tmp

Online editor

You can online edit doc files html|rtf|doc|docx|odt as office files.

Or html|txt|js|css|md formats as source code.

You need libreoffice package for office files.

Office files follow this flow: file.doc => file.html, edit => file.doc

File encrypt

Important

Be careful. If you download .crypt file with WRONG password, it file will be contain MESS of bytes


Your server need package openssl. It will be use openssl aes-256-cbc

http-here --extend-mode --crypt /tmp

Then, set your passcode to the form. The passcode store on the form between requests and you not need input it every time (if you clear it server will not use openssl).

During the process of uploading, your files will be encrypt and their EXT change to .crypt

When files lying on your server, their data is crypted.

If you need decrypt any .crypt flles, set your passcode, and click on file. During download this file, it will be decrypt on the fly.

Server will be encrypt upload file:

http-here --extend-mode --crypt /tmp
  • if you set --crypt arg on cmd
  • if you set passcode (pass code set by form)

Server will be decrypt download file:

http-here --extend-mode --crypt /tmp
  • if you set --crypt arg on cmd
  • if filename contain .crypt extension
  • if you set right passcode (pass code set by form)

Server will be decrypt download file (case 2):

http-here /tmp
  • if filename contain .crypt extension
  • if you get file with code param: /fold3/file.jpg.crypt?code=YOUR_PASS_HERE

Notes

Caution

Be careful, if you start this App on public network interface, anybody can work with it

Caution

Always run this app only under unprivileged common user

  • If you run application under some User, this user should be have privileges to write current folder

Automatic TLS keys generate

  • For start HTTPS server you need easyrsa linux package
  • When you start server with --tls option, all keys generate automatically
http-here --tls .
  • Server use self signed certs, generated at first time. Thus you need approve this connection on your clients.

Magic file index.html inside any folder

If you put inside folder file index.html, it will be return as context

Thumbnails support

For document preview you need libreoffice package. Formats pdf, rtf, doc, docx, xls, xlsx, odt, ods

Linux packages needs for full functional

  • libreoffice - for thumbnails, for doc files online edit
  • easyrsa - package for certs build
  • openssl - encrypt file support

You can ask any question or suggest something

https://github.com/western/http-here/issues

History

backlog

  • add --log and --tee args for save output (or database?)
  • change background actions for FS drivers (i need one abstraction layer)
  • problem: how decide to run md5sum inside some folder
  • database, seperate branch without?
  • tests

1.9.0

  • add source code editor for html|txt|js|css|md

1.8.1

  • enable preview for rtf|doc|docx|odt

1.8.0

  • online editor for html|rtf|doc|docx|odt

1.7.0

  • top buttons operations
  • api/copy
  • api/rename
  • "edit" still planning
  • "share" still planning

1.6.0

  • add file crypt support

need openssl package

1.5.7

  • add experimental preview office files

you need libreoffice package

Pirates hiding their http