gossl

command module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

gossl

A reverse proxy using acme/autocert for automatically creating / renewing certificates.

Access is controlled by a not-easily-guessable token.


# Environment variables and descriptions. 
# A file with these can be placed /etc/sysconfig/<service> if run as a service.

# Listen address in http.ListenAndServe format
ADDRESS=EXTERNAL_IP:443

# Domain to use in the cookie
ACME_DOMAIN=COOKIE_DOMAIN

# The token to allow access. Visit one of the configured domains with this
# in the path to set it. Rotate frequently and don't share in public. 
GO_SSL_TOKEN=LONG_UUID_NOT_EASILY_GUESSABLE

# reverse proxy entries must have prefix GO_SSL_ENDPOINT_
# followed by hostname with "." replaced with "_" 
GO_SSL_ENDPOINT_one_example_com=http://10.0.0.1:9000
GO_SSL_ENDPOINT_two_example_com=http://10.0.0.2:9000

# this environment variable indicates which host names can skip the token verification
# i.e. strings.Contains(os.getEnv(SKIP_GO_SSL_TOKEN), hostName)
SKIP_GO_SSL_TOKEN=two.example.com

Go Report Card

created by tigwen

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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