all repos — fsrv @ f2531467f400563a56c2192b34815d07b97ed9ed

filehost server for x.icyphox.sh

readme (view raw)

 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
FSRV

Filehost server for https://x.icyphox.sh.


(NON) FEATURES

· Single-user
· Only handles file upload. Serving is left to the reverse proxy.
· Bring your own index.html (-index flag)
· Requires a key to upload. Change the default!


USAGE

    Usage of ./fsrv:
      -index string
            path to index html file (default "index.html")
      -key string
            secret key; generate this yourself (default "secret")
      -namelen int
            length of random filename (default 5)
      -port string
            port to listen on (default "9393")
      -storepath string
            path to store uploaded files (default "uploads")
      -url string
            url for fsrv to serve files (default "localhost")

Sample index.html is provided. Edit as required.