mirror of
https://github.com/1f349/orchid.git
synced 2024-12-22 08:04:10 +00:00
Change answer variable to api domains
This commit is contained in:
parent
cebad8224c
commit
d648555af1
@ -57,7 +57,7 @@ func (s *setupCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interfa
|
|||||||
|
|
||||||
var answers struct {
|
var answers struct {
|
||||||
ApiListen string
|
ApiListen string
|
||||||
FirstDomains string
|
ApiDomains string
|
||||||
AcmeRefresh string
|
AcmeRefresh string
|
||||||
AcmePresentUrl string
|
AcmePresentUrl string
|
||||||
AcmeCleanUpUrl string
|
AcmeCleanUpUrl string
|
||||||
@ -154,7 +154,7 @@ func (s *setupCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interfa
|
|||||||
Directory: "production",
|
Directory: "production",
|
||||||
Certificate: "default",
|
Certificate: "default",
|
||||||
},
|
},
|
||||||
Domains: strings.Split(answers.FirstDomains, ","),
|
Domains: strings.Split(answers.ApiDomains, ","),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("[Orchid] Failed to write config file: ", err)
|
fmt.Println("[Orchid] Failed to write config file: ", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user