~emersion/tlstunnel

3825cdccff23415710ba8c2742c729c942fac809 — Hubert Hirtz 29 days ago 86f5946
Add the "tls.email" directive

To receive expiration warnings from Let's Encrypt.
2 files changed, 10 insertions(+), 0 deletions(-)

M directives.go
M tlstunnel.1.scd
M directives.go => directives.go +6 -0
@@ 103,6 103,12 @@ func parseTLS(srv *Server, d *Directive) error {
				return err
			}
			srv.ACMEManager.CA = caURL
		case "email":
			var email string
			if err := child.ParseParams(&email); err != nil {
				return err
			}
			srv.ACMEManager.Email = email
		default:
			return fmt.Errorf("unknown %q directive", child.Name)
		}

M tlstunnel.1.scd => tlstunnel.1.scd +4 -0
@@ 64,6 64,10 @@ The following directives are supported:
	*acme_ca* <url>
		ACME Certificate Authority endpoint.

	*email* <address>
		The email address to use when creating or selecting an existing ACME
		server account

# FILES

_/etc/tlstunnel/config_