Installation

Binary

Homebrew

Go

go get -u github.com/labstack/armor/cmd/armor

Docker

docker pull labstack/armor

Usage

Type armor in your terminal

❯ armor

 _______  ______    __   __  _______  ______
|   _   ||    _ |  |  |_|  ||       ||    _ |
|  |_|  ||   | ||  |       ||   _   ||   | ||
|       ||   |_||_ |       ||  | |  ||   |_||_
|       ||    __  ||       ||  |_|  ||    __  |
|   _   ||   |  | || ||_|| ||       ||   |  | |
|__| |__||___|  |_||_|   |_||_______||___|  |_|

                                      v0.1.1

Simple HTTP server, supports HTTP/2 and auto TLS
      https://github.com/labstack/armor
___________________O/___________________________
                   O\

 ⇛ http server started on :8080

This starts armor on address :8080, serving the current directory listing using the default config. Go to http://localhost:8080 to browse the directory.

Armor can also be run using Docker docker run labstack/armor.

Command-line Flags

  • -p http listen port
  • -c config file
  • -v print the version

Configuration