chore: update main.go
This commit is contained in:
4
main.go
4
main.go
@@ -151,7 +151,7 @@ func request(client *http.Client, token, method, url string, body interface{}) (
|
|||||||
// -------------------------------
|
// -------------------------------
|
||||||
|
|
||||||
func Deploy(cfg Config) error {
|
func Deploy(cfg Config) error {
|
||||||
client := &http.Client{Timeout: 15 * time.Second}
|
client := &http.Client{Timeout: 120 * time.Second}
|
||||||
if cfg.TLSSkipVerify {
|
if cfg.TLSSkipVerify {
|
||||||
client.Transport = &http.Transport{
|
client.Transport = &http.Transport{
|
||||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||||
@@ -206,7 +206,7 @@ func Deploy(cfg Config) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Stack) Redeploy(cfg Config) error {
|
func (s *Stack) Redeploy(cfg Config) error {
|
||||||
client := &http.Client{Timeout: 15 * time.Second}
|
client := &http.Client{Timeout: 120 * time.Second}
|
||||||
if cfg.TLSSkipVerify {
|
if cfg.TLSSkipVerify {
|
||||||
client.Transport = &http.Transport{
|
client.Transport = &http.Transport{
|
||||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||||
|
|||||||
Reference in New Issue
Block a user