Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shoenig/just-files
A trivial files server in Go
https://github.com/shoenig/just-files
files go golang server statics
Last synced: 3 days ago
JSON representation
A trivial files server in Go
- Host: GitHub
- URL: https://github.com/shoenig/just-files
- Owner: shoenig
- License: mpl-2.0
- Created: 2021-07-08T15:32:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T17:35:29.000Z (9 days ago)
- Last Synced: 2024-12-15T18:26:24.145Z (9 days ago)
- Topics: files, go, golang, server, statics
- Language: Go
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# just-files
![GitHub](https://img.shields.io/github/license/shoenig/just-files?style=flat-square)
`just-files` is a trivial static files server in Go.
### Features
Basically none
### Usage
Set `BIND` environment variable to configure bind address.
- defaults to `127.0.0.1`
Set `PORT` environment variable to configure bind port
- defaults to `8000`
Arguments are a comma-separated list of `:` pairs.
### Examples
```shell
BIND=0.0.0.0 PORT=8081 just-files /:/www
```### Building
The `just-files` file server is written in Go. IT can be built using the normal
Go toolchain steps, e.g.```shell
go build
```### Installing
With the Go toolchain installed,
```shell
go install github.com/shoenig/just-files@latest
```### Contributing
Open an issue
### License
The `just-files` file server is made open source under the [MPL-2.0](LICENSE) license.