From 9232b96188407fda25c061d05fb0eadd1848676c Mon Sep 17 00:00:00 2001 From: kataras Date: Sat, 26 Aug 2017 01:49:23 +0300 Subject: [PATCH] Update `iris.AutoTLS` example, read description. Iris devs should declare all the information now, there is no option to "leave something out" anymore, it's for your own good. Version is not changed yet, giving you time to see that changelog and do the necessary changes to your codebase, it will written to HISTORY.md too of course. Before: app.Run(iris.AutoTLS(":443")) Now: app.Run(iris.AutoTLS(":443", "example.com", "mail@example.com") Commit Change: https://github.com/kataras/iris/commit/f7b655f145b011e758cf06fb8adef871d9c18fde [formerly f5314a8c1f8303d7216481d05129eb8a62766e14] Happy weekend! Former-commit-id: bf974dc486d05ff008c9ed13aaf96e716b1e55c6 --- _examples/http-listening/listen-letsencrypt/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_examples/http-listening/listen-letsencrypt/main.go b/_examples/http-listening/listen-letsencrypt/main.go index 94991c1d..01e02ff4 100644 --- a/_examples/http-listening/listen-letsencrypt/main.go +++ b/_examples/http-listening/listen-letsencrypt/main.go @@ -21,8 +21,8 @@ func main() { ctx.Redirect("/test2") }) - // NOTE: This may not work on local addresses like this, - // use it on a real domain, because - // it uses the "golang.org/x/crypto/acme/autocert" package. - app.Run(iris.AutoTLS("localhost:443")) + // NOTE: This will not work on domains like this, + // use real whitelisted domain(or domains split by whitespaces) + // and a non-public e-mail instead. + app.Run(iris.AutoTLS(":443", "example.com", "mail@example.com")) }