Skip to content

ahsmha/fserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

minimal self-hostable file server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published