Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codenoid/file-server

Multi-source file server [💾 | 💽 | 💿] 🧐
https://github.com/codenoid/file-server

file-server golang

Last synced: about 1 month ago
JSON representation

Multi-source file server [💾 | 💽 | 💿] 🧐

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: last

sources:
-
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)