-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme
43 lines (30 loc) · 1 KB
/
readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
fserver
minimal self hostable file server.
RUN
- cd path/to/cloned-repo
- go build
- ./fserver; flags supported
- alternatively, run using docker
FLAGS
-url
url at which files are served (default "localhost:9090")
-address
address to listen on (default "0.0.0.0:9090")
-namelen
length of names of uploaded files (default 6)
-secretkey
secret key which only you know. generated anyhow (default "secret")
-path
path to store uploaded files (default "uploads")
-index
path to html index file (default "public/index.html")
EXAMPLE
./fserver -url="cdn.google.com" -address="<ip-address>:<port>" -namelen=5 -secretkey="fdlskjaoeWJIEW($ILJdlkjfewo3" -path="uploads" -index="public/index.html"
DEPENDENCIES
https://github.com/matryer/way
TODO
- implement custom url support
- use a more robust logic for url generation
- update a file with same url with some other file
- delete a url
- list all urls