support .well-known dir
This commit is contained in:
parent
422f14199e
commit
07d12326f0
2 changed files with 15 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ var serveCmd = &cobra.Command{
|
|||
Branch: branch,
|
||||
}
|
||||
|
||||
s, err := lib.UseAPI(bind, f)
|
||||
s, err := lib.UseAPI(bind, viper.GetString("well-known"), f)
|
||||
if err != nil {
|
||||
fmt.Println("cannot create server: ", err)
|
||||
return
|
||||
|
|
@ -82,5 +82,6 @@ func init() {
|
|||
f.StringP("server", "s", "", "Forgejo server address")
|
||||
f.StringP("token", "k", "", "Forgejo api token")
|
||||
f.StringP("branch", "b", "static-pages", "branch to use")
|
||||
f.StringP("well-known", "w", "/.well-known", "well-known path, used by LetsEncrypt")
|
||||
viper.BindPFlags(f)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue