53 Commits

Author SHA1 Message Date
Bo-Yi Wu
865e31b3e7 chore(deps): add go1.20 version
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Run Tests / lint (push) Has been cancelled
Run Tests / ubuntu-latest @ Go 1.14 (push) Has been cancelled
Run Tests / ubuntu-latest @ Go 1.15 (push) Has been cancelled
Run Tests / ubuntu-latest @ Go 1.16 (push) Has been cancelled
Run Tests / ubuntu-latest @ Go 1.17 (push) Has been cancelled
Run Tests / ubuntu-latest @ Go 1.18 (push) Has been cancelled
Run Tests / ubuntu-latest @ Go 1.19 (push) Has been cancelled
Run Tests / ubuntu-latest @ Go 1.20 (push) Has been cancelled
Run Tests / macos-latest @ Go (push) Has been cancelled
2023-02-08 09:11:10 +08:00
Bo-Yi Wu
632894b68c chore: update go module 2022-08-30 16:33:00 +08:00
Bo-Yi Wu
bd8f53afb8 docs: add graceful shtdown example
https://github.com/gin-gonic/autotls/issues/12
2022-08-30 16:26:03 +08:00
Bo-Yi Wu
9bf58ee3ca fix: passes lock by value: crypto/tls.Config contains sync.RWMutex 2022-08-30 16:21:50 +08:00
Bo-Yi Wu
51bcee9a78 chore: add default todo context 2022-08-30 16:17:14 +08:00
Bo-Yi Wu
51c5c22dbb docs: update badge path 2022-08-30 16:03:35 +08:00
Bo-Yi Wu
47db057172 docs: update format 2022-08-30 16:01:54 +08:00
Bo-Yi Wu
c96a2dde45 chore: support context with graceful shutdown 2022-08-30 16:01:54 +08:00
dependabot[bot]
5f664b2204 chore(deps): bump goreleaser/goreleaser-action from 2 to 3 (#30)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 14:12:12 +08:00
Bo-Yi Wu
8b0ca89d95 chore: Add goreleaser config 2022-08-30 14:10:01 +08:00
Bo-Yi Wu
3f6e452bfd chore: check error value 2022-08-30 14:09:17 +08:00
Bo-Yi Wu
7c6e4805a4 chore: upgrade golangci-lint version to v1.49.0 2022-08-30 13:15:59 +08:00
Bo-Yi Wu
926c4cf438 chore: switch CI/CD form travis to GitHub Actions 2022-08-30 13:13:54 +08:00
Thomas Prévost
8c05145e00 Add http redirection to Run function (#26) 2022-08-30 13:11:49 +08:00
y-yagi
02b8ac3713 Update doc link to reference pkg.go.dev (#25)
`godoc.org` is still alive, but requests redirect to pkg.go.dev.
This fixed to point to pkg.go.dev direct to reduce unneeded redirect.

Ref: https://blog.golang.org/godoc.org-redirect
2021-04-30 19:28:15 +08:00
Bo-Yi Wu
82f5821f61 Support golang 1.16 2021-02-19 22:54:23 +08:00
Partha Sarathy
33ca0bf9a2 Changed HTTP to HTTPS redirect status code to 301 (#24) 2021-02-19 22:53:54 +08:00
@CbdFocus
b4d5e90a54 refactor(redirect): Use RequestURI (#23)
// URL specifies either the URI being requested (for server
    // requests) or the URL to access (for client requests).
    //
    // For server requests, the URL is parsed from the URI
    // supplied on the Request-Line as stored in RequestURI.  For
    // most requests, fields other than Path and RawQuery will be
    // empty. (See RFC 7230, Section 5.3)
    //
    // For client requests, the URL's Host specifies the server to
    // connect to, while the Request's Host field optionally
    // specifies the Host header value to send in the HTTP
    // request.

See https://golang.org/pkg/net/http/#Request
2020-10-17 16:40:17 +08:00
Bo-Yi Wu
84c80ec780 chore: remove unused package 2020-08-30 15:33:26 +08:00
Bo-Yi Wu
86c7d2d399 chore: support http redirect to https (#22) 2020-08-23 20:37:24 +08:00
Bo-Yi Wu
380d517e3b chore: update go module 2020-08-23 18:42:26 +08:00
Bo-Yi Wu
74a5c072b1 chore: update example 2020-08-23 18:37:42 +08:00
Bo-Yi Wu
692e944af7 Add 1.15 version in go 2020-08-23 18:34:04 +08:00
Bo-Yi Wu
45033372a9 upgrade gin to v1.6.3
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-05-18 15:55:42 +08:00
Bo-Yi Wu
cc69476aef chore: add golang 1.14 version 2020-03-14 22:11:24 +08:00
Bo-Yi Wu
ffaac874b9 chore: upgrade gin to v1.5.0
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-11-29 13:51:49 +08:00
Bo-Yi Wu
689297a2fe chore: support go1.13 (#16)
* chore: support go1.13

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-09-04 15:16:45 +08:00
Bo-Yi Wu
3135c7b8d1 feat: upgrade to gin v1.4 2019-05-28 22:23:57 +08:00
Bo-Yi Wu
fb31fc47f5 feat: support go1.12 2019-04-06 08:31:54 +08:00
Chris Howey
8ed28fb848 use tlsconfig with additional protos (#11)
enable tls-alpn ACME challenges
2019-04-06 08:28:17 +08:00
Bo-Yi Wu
0b5f4fc157 feat(vendor): switch govendor to go module (#10)
* feat(vendor): switch govendor to go module

* move example

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update readme

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* drop 1.6 and 1.7 support

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-01-19 20:56:36 +08:00
Bo-Yi Wu
be87bd5ef9 fix: autocert package. (#6) 2018-04-26 17:12:46 +08:00
Bo-Yi Wu
0e3482253e update go version
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-04-26 17:00:34 +08:00
Bo-Yi Wu
031368d0b7 update vendor
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2018-01-24 11:33:01 +08:00
Bo-Yi Wu
8ca25fbde7 travis support 1.9.x for go version 2017-09-17 00:54:15 +08:00
Bo-Yi Wu
4430427785 update 1.9
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-08-26 21:47:04 +08:00
Bo-Yi Wu
92b16e8f23 add 1.9 version. (#3)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-08-26 00:00:48 -05:00
vz
b2a792e7c1 Update docs (#2) 2017-08-25 23:56:46 -05:00
Bo-Yi Wu
9261e1c52a fix
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-03 09:41:24 +08:00
Bo-Yi Wu
e0157e5e37 update docs
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-03 09:38:25 +08:00
Bo-Yi Wu
763590227a update docs
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-03 09:34:43 +08:00
Bo-Yi Wu
02e1f6bf78 update docs
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-03 09:33:06 +08:00
Bo-Yi Wu
e4a9f261f1 add doc
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-03 09:23:29 +08:00
Bo-Yi Wu
7bc5584afd fix typo
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-03 09:16:48 +08:00
Bo-Yi Wu
436c3a65f0 add some badge
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-03 09:16:17 +08:00
Jens Gassmann
3838f884b5 Fix sync.Mutex (#1)
* Fix mutex Error

* Fix Mutex

* Update README.md
2017-07-02 20:14:36 -05:00
Bo-Yi Wu
3c25013201 upgrade autocert
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-03 09:13:59 +08:00
Bo-Yi Wu
5b3297bdce add build status.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-04-16 17:39:34 +08:00
Bo-Yi Wu
aa15981cd8 add travis
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-04-16 17:38:34 +08:00
Bo-Yi Wu
4882bdc832 fix: update example. 2017-04-16 17:32:42 +08:00