Skip to content

Commit

Permalink
Merge pull request #201 from ironstar-io/fix/create-new-proxy-network…
Browse files Browse the repository at this point in the history
…-early

Fix/create new proxy network early
  • Loading branch information
ironmike-au authored Oct 10, 2019
2 parents 43e4cad + 3342416 commit 28cdea8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion services/tok/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func Init(yes, statuscheck, noPullImagesFlag bool) {
// System readiness checks
version.Check()
docker.CheckClientVersion()
proxy.CreateProxyNetwork()
checkSyncConfig()

fmt.Println(aurora.Cyan("\n🚀 Tokaido is starting up!"))
Expand All @@ -56,7 +57,6 @@ func Init(yes, statuscheck, noPullImagesFlag bool) {
drupal.CheckSettings(cs)
docker.FindOrCreateTokCompose()
ssh.GenerateKeys()
proxy.CreateProxyNetwork()

docker.CreateDatabaseVolume()
docker.CreateSiteVolume()
Expand Down
2 changes: 1 addition & 1 deletion system/tls/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func createCA() (err error) {
CommonName: constants.CommonName,
},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0), // 10 years
NotAfter: time.Now().AddDate(2, 0, 0), // 10 years
IsCA: true,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},
KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
Expand Down
4 changes: 2 additions & 2 deletions system/tls/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func createWildcardCertificate() (err error) {
},
DNSNames: []string{constants.WildcardHost},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0),
NotAfter: time.Now().AddDate(2, 0, 0),
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
}

Expand Down Expand Up @@ -76,7 +76,7 @@ func createProjectCertificate(projectName, projectPath, commonName string) (err
},
DNSNames: []string{commonName},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0),
NotAfter: time.Now().AddDate(2, 0, 0),
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
}

Expand Down

0 comments on commit 28cdea8

Please sign in to comment.