PAM authenticated temporary file-hosting server.
go.mod | ||
go.sum | ||
main.go | ||
README.md |
goshared
A lightweight file-hosting server for pubnixes or similar shared-hosting environments, written in Go. Uses PAM for authentication.
Usage
The server can be configured using the following command-line flags:
-baseurl Base URL for generated file links (default "http://localhost:8080")
-expire Number of hours before files are deleted (default 24)
-index Path to html file to serve as index (default "index.html")
-listen Address to listen on (default ":8080")
-maxsize Maximum allowed file size in bytes (default 10MB)
-storage Directory to store uploaded files (default "/tmp/share")
Build
git clone https://git.tilde.horse/nameless/goshared
cd goshared
go build