haproxy-letsencrypt

command module
v0.0.0-...-0e73642 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

Haproxy configured via a cli with automatic SSL (Let's encrypt)

Run the example

cd examples
docker-compose build
docker-compose up

Build the binary

make install

Add a frontend

haproxy-letsencrypt frontend add --backend-url=http://localhost:6300  --port=80 --name=http
Add backend
 haproxy-letsencrypt backend add --backend-url=http://localhost:6300 --frontend=http --host=example.com -a=192.168.1.47:9000 
Backend with basic auth
printf "123456" | mkpasswd --stdin --method=md5
haproxy-letsencrypt backend add --backend-url=http://localhost:6300 --frontend=http --host=example.com -a=192.168.1.47:8080 --basic-auth="foo:\$1\$IBZn5tWj\$dJIVwHaK465qDTISvMFmK1"
curl --user foo:123456 -H 'Host:example.com' localhost -v

Now with ssl

haproxy-letsencrypt frontend add --backend-url=http://localhost:6300  --port=443 --name=https --ssl
haproxy-letsencrypt backend add --backend-url=http://localhost:6300 --frontend=https --host=example.com -a=192.168.1.47:9000

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg
lb
le

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL