mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
Fix autocert generation
This commit is contained in:
parent
4db23fae05
commit
546e0bad00
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ func server(c *cli.Context) error {
|
||||||
dir := cacheDir()
|
dir := cacheDir()
|
||||||
os.MkdirAll(dir, 0700)
|
os.MkdirAll(dir, 0700)
|
||||||
|
|
||||||
manager := autocert.Manager{
|
manager := &autocert.Manager{
|
||||||
Prompt: autocert.AcceptTOS,
|
Prompt: autocert.AcceptTOS,
|
||||||
HostPolicy: autocert.HostWhitelist(address.Host),
|
HostPolicy: autocert.HostWhitelist(address.Host),
|
||||||
Cache: autocert.DirCache(dir),
|
Cache: autocert.DirCache(dir),
|
||||||
|
|
Loading…
Reference in a new issue