项目作者: casperklein

项目描述 :
Quick way to share files with a "Fancy Index Listing" via HTTP.
高级语言: Shell
项目地址: git://github.com/casperklein/docker-http.git
创建时间: 2019-08-19T23:29:14Z
项目社区:https://github.com/casperklein/docker-http

开源协议:

下载


docker-http

Version
Supports amd64 architecture
Supports aarch64 architecture
Supports armhf architecture
Supports armv7 architecture
Docker image size

Quick way to share files with a Fancy Index Listing 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

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

with authentication

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

authentication with random credentials

  1. docker run --rm -it -v $PWD:/html -p 8080:80 -e auth="random" casperklein/http

Aliases

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

Access files

  1. http://$HOST:8080/

Fancy Directory Listing