PAM authenticated temporary file-hosting server.
Find a file
2025-01-12 22:52:47 -05:00
go.mod Initial commit 2025-01-12 22:52:47 -05:00
go.sum Initial commit 2025-01-12 22:52:47 -05:00
main.go Initial commit 2025-01-12 22:52:47 -05:00
README.md Initial commit 2025-01-12 22:52:47 -05:00

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