Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codenoid/file-server
Multi-source file server [💾 | 💽 | 💿] 🧐
https://github.com/codenoid/file-server
file-server golang
Last synced: about 2 months ago
JSON representation
Multi-source file server [💾 | 💽 | 💿] 🧐
- Host: GitHub
- URL: https://github.com/codenoid/file-server
- Owner: codenoid
- Created: 2020-10-20T16:17:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-21T23:45:38.000Z (about 4 years ago)
- Last Synced: 2024-11-01T17:51:43.349Z (2 months ago)
- Topics: file-server, golang
- Language: Go
- Homepage:
- Size: 213 KB
- Stars: 19
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Server
Multi-source file server, actually this is for my private use, i need to serve from 15TB+ files and google storage public url on single link
[![Go Report Card](https://goreportcard.com/badge/github.com/codenoid/file-server)](https://goreportcard.com/report/github.com/codenoid/file-server)
[![CodeFactor](https://www.codefactor.io/repository/github/codenoid/file-server/badge/master)](https://www.codefactor.io/repository/github/codenoid/file-server/overview/master)## Installation
We provide serveral installation method
### Using TJ's gobinaries.com
```sh
curl -sf https://gobinaries.com/codenoid/file-server/cmd/file-server | sh
```### Using Go
```sh
go get github.com/codenoid/file-server/cmd/file-server
```## Config Example
```yml
identity_type: uri-segment
identity_source: lastsources:
-
type: fs
source: /var/app/master
-
type: url
source: https://storage.googleapis.com/awg3igbab/
```## Usage
take a look at master branch for config.yml file example
```sh
$ file-server --help
-bind string
bind addr (default ":8080")
-config string
path to config file (default "config.yml")
```**after the server are running**, you can access `http://localhost:8080/identity-or-file-name.jpg`, then file-server will read one by one from source, will return 404 and empty body if file not found
### Assets
Project logo are taken from [http://clipart-library.com/clip-art/books-transparent-background-10.htm](http://clipart-library.com/clip-art/books-transparent-background-10.htm)