Discover Packages
github.com/antonini/armor
package
module
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Oct 2, 2016
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Simple HTTP server, supports HTTP/2 and auto TLS
Armor is written in Go. It is based on the upcoming Echo v3.
What can it do today?
Serve HTTP2
Automatically install TLS certificates from https://letsencrypt.org
Proxy HTTP and WebSocket requests
Define virtual hosts with path level routing
Graceful shutdown
Limit request body
Serve static files
Log requests
Gzip response
CORS
Security
XSSProtection
ContentTypeNosniff
ContentSecurityPolicy
Add / Remove trailing slash from the URL with option to redirect
Redirect requests
http to https
http to https www
http to https non www
non www to www
www to non www
Most of the functionality is implemented via Plugin interface which makes writing
a custom plugin super easy.
What's on the roadmap?
More command-line options
More plugins
More features
Website
Code coverage
Test cases
Expand ▾
Collapse ▴
Documentation
¶
type Host struct {
CertFile string `json:"cert_file"`
KeyFile string `json:"key_file"`
Plugins map[string ]interface{} `json:"plugins"`
Paths map[string ]*Path `json:"paths"`
Echo *echo .Echo `json:"-"`
}
type Path struct {
Plugins map[string ]interface{} `json:"plugins"`
}
Source Files
¶
Directories
¶
cmd
package plugin is a generated protocol buffer package.
package plugin is a generated protocol buffer package.
Click to show internal directories.
Click to hide internal directories.