Temporary file hosting service designed for pubnixes.
Find a file
2025-10-13 10:11:33 -04:00
go.mod new repo, first commit 2025-09-20 13:11:34 -04:00
go.sum new repo, first commit 2025-09-20 13:11:34 -04:00
index.html new repo, first commit 2025-09-20 13:11:34 -04:00
LICENSE change copyright holder name 2025-09-29 01:44:08 -04:00
main.go new repo, first commit 2025-09-20 13:11:34 -04:00
README.md update readme 2025-10-13 10:11:33 -04: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/ky/goshared
cd goshared
go build