# README
fargo
fargo(Fast cARGO) is simple file copy daemon with HTTP.
- Push/Get file with using
TOKEN
TOKEN
automatically being invalid in 5 minTOKEN
can generate only from allowed IP Address (default: Private IP Addresses)TOKEN
require Basic Auth
- Pushed file automatically removed in 10 min
Install
- visit Latest release download page
- download zip for your system
- Linux x86_64 =>
linux_amd64.zip
- Linux x86_64 =>
- unzip downloaded file
unzip linux_amd64.zip
Usage
Start server
./fargo
Push file to server
1.get token(can access only from TOKEN_ALLOWED_FROM)
curl -v --user fargo:fargo http://fargo.example.com:1236/token
2.push file
curl -v -F file=@somefile http://fargo.example.com:1236/push/<TOKEN>
Get file from server
curl -v -o somefile http://fargo.example.com:1236/get/<TOKEN>
or Latest curl(on MacOSX), can preserve original filename with -J
option.
curl -v -OJ http://fargo.example.com:1236/get/<TOKEN>
Help
curl http://fargo.example.com:1236/
or
curl http://fargo.example.com:1236/help
Specification
- Listen address/port is
0.0.0.0:1236
by default.- can change with env
FARGO_ADDR
- can change with env
/token
can access from127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
- can change with env
TOKEN_ALLOWED_FROM
- can change with env
- username/password for
/token
isfargo
/fargo
by default.- can change with env
FARGO_USER
andFARGO_PASSWORD
- can change with env
- File store directory is
/tmp
by default.- can change with env
STORE_DIR
- can change with env
TOKEN
is UUIDv4TOKEN
is expired in 5 min by default.- can change with env
TOKEN_TTL
(min)
- can change with env
- If get file fail, locked 30 seconds from same IP by default.
- Pushed file will delete in 600 sec(10 min) by default.
- can change with env
FILE_TTL
(sec)
- can change with env
# Functions
No description provided by the author
No description provided by the author