~emersion/public-inbox

tlstunnel: Add the "tls.email" directive v1 APPLIED

Hubert Hirtz: 1
 Add the "tls.email" directive

 2 files changed, 10 insertions(+), 0 deletions(-)
#312804 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/14156/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH tlstunnel] Add the "tls.email" directive Export this patch

To receive expiration warnings from Let's Encrypt.
---
 directives.go   | 6 ++++++
 tlstunnel.1.scd | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/directives.go b/directives.go
index 38d6180..43efd20 100644
--- a/directives.go
+++ b/directives.go
@@ -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)
		}
diff --git a/tlstunnel.1.scd b/tlstunnel.1.scd
index 161c7ad..ae781ec 100644
--- a/tlstunnel.1.scd
+++ b/tlstunnel.1.scd
@@ -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_
-- 
2.28.0
builds.sr.ht
tlstunnel/patches/.build.yml: SUCCESS in 34s

[Add the "tls.email" directive][0] from [Hubert Hirtz][1]

[0]: https://lists.sr.ht/~emersion/public-inbox/patches/14156
[1]: mailto:hubert@hirtz.pm

✓ #312804 SUCCESS tlstunnel/patches/.build.yml https://builds.sr.ht/~emersion/job/312804
Pushed, thanks!