24 lines
726 B
Markdown
24 lines
726 B
Markdown
|
# 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
|
||
|
```bash
|
||
|
git clone https://git.tilde.horse/nameless/goshared
|
||
|
cd goshared
|
||
|
go build
|
||
|
```
|