Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/casperklein/docker-http
- Owner: casperklein
- Created: 2019-08-19T23:29:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-26T21:52:32.000Z (2 months ago)
- Last Synced: 2024-08-27T00:40:49.448Z (2 months ago)
- Topics: apache, docker, fancy-index, http
- Language: Shell
- Homepage:
- Size: 67.4 KB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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