Guide

Installation

Binary

Homebrew

brew install armor

Go

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

Docker

docker pull labstack/armor

Usage

Type armor in your terminal

❯ armor

   ___
  / _ | ______ _  ___  ____
 / __ |/ __/  ' \/ _ \/ __/
/_/ |_/_/ /_/_/_/\___/_/    v0.3.3

Uncomplicated, modern HTTP server
https://armor.labstack.com
________________________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 as in a Docker:

docker run \
  -p 8080:80 \
  -v <config_file>:/etc/armor/config.yaml \
  -v <volume_to_mount>:/var/www \
    labstack/armor -c /etc/armor/config.yaml

Command-line Flags

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

Configuration