Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/casperklein/docker-http

Quick way to share files with a "Fancy Index Listing" via HTTP.
https://github.com/casperklein/docker-http

apache docker fancy-index http

Last synced: 1 day ago
JSON representation

Quick way to share files with a "Fancy Index Listing" via HTTP.

Awesome Lists containing this project

README

        

# docker-http

![Version][version-shield]
![Supports amd64 architecture][amd64-shield]
![Supports aarch64 architecture][aarch64-shield]
![Supports armhf architecture][armhf-shield]
![Supports armv7 architecture][armv7-shield]
![Docker image size][image-size-shield]

Quick way to share files with a [Fancy Index Listing](https://github.com/Vestride/fancy-index/) via HTTP.

## Parameters

| Parameters | Description |
| - | - |
| -p 8080:80 | Map host port 8080 |
| -e user="foo" | Username for authentication |
| -e pass="CHANGE-ME" | Password for authentication |
| -e auth="random" | Generate random user/pass for authentication |
| -e TZ="Europe/Berlin" | Specify a timezone to use |
| -v $PWD:/html | Mount current dirctory for file sharing |

## Share files in current directory via HTTP

docker run --rm -it -v $PWD:/html -p 8080:80 casperklein/http

### with authentication

docker run --rm -it -v $PWD:/html -p 8080:80 -e user="foo" -e pass="CHANGE-ME" casperklein/http

### authentication with random credentials
docker run --rm -it -v $PWD:/html -p 8080:80 -e auth="random" casperklein/http

## Aliases

alias httphere='docker run --rm -it -v $PWD:/html -p 8080:80 casperklein/http'
alias httphere='docker run --rm -it -v $PWD:/html -p 8080:80 -e user="foo" -e pass="CHANGE-ME" casperklein/http'
alias httphere='docker run --rm -it -v $PWD:/html -p 8080:80 -e auth="random" casperklein/http'

## Access files

http://$HOST:8080/

![Fancy Directory Listing][screenshot]

[screenshot]: https://github.com/casperklein/docker-http/raw/master/docker-http.png
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-blue.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-blue.svg
[armhf-shield]: https://img.shields.io/badge/armhf-yes-blue.svg
[armv7-shield]: https://img.shields.io/badge/armv7-yes-blue.svg
[version-shield]: https://img.shields.io/github/v/release/casperklein/docker-http
[image-size-shield]: https://img.shields.io/docker/image-size/casperklein/http/latest