Permalink
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (53 sloc) 1.5 KB

+++ title = "Guide" description = "Guide" type = "guide" [menu.main] name = "Guide" pre = "" weight = 1 identifier = "guide" +++

Installation

Via Binary

Via Homebrew (macOS)

brew install armor

Via Scoop (Windows)

scoop install armor

Via Go

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

Via Docker

docker pull labstack/armor

Usage

Type armor in your terminal

❯ armor

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

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 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]({{< ref "guide/configuration.md">}})