Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8880d53

Browse files
committed
config: use port 443 instead of 5550 for DBHub.io communication
1 parent de721ac commit 8880d53

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cachain = "ca-chain.cert.pem"
3434
cert = "/path/to/your/certificate.cert.pem"
3535
3636
[general]
37-
cloud = "https://dbhub.io:5550"
37+
cloud = "https://db4s.dbhub.io"
3838
3939
[user]
4040
name = "Your Name"
@@ -44,7 +44,7 @@ email = "[email protected]"
4444
* The `ca-chain-cert.pem` file is from [here](https://github.com/sqlitebrowser/dio/blob/master/cert/ca-chain.cert.pem)
4545
* Download it and save it on your computer, then update that path to point to it
4646
* The `cert` path should point to your generated DBHub.io certificate
47-
* The `cloud` value should be left alone (eg pointing to https://dbhub.io:5550)
47+
* The `cloud` value should be left alone (eg pointing to https://db4s.dbhub.io)
4848
* The name and email values should be set to your name and email address
4949

5050
You can check the information from Dio's point of view by running `dio info`, which

cmd/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func commit(args []string) error {
152152
if err != nil {
153153
return err
154154
}
155-
if !changed && commitCmdLicence == ""{
155+
if !changed && commitCmdLicence == "" {
156156
return fmt.Errorf("Database is unchanged from last commit. No need to commit anything.")
157157
}
158158
}

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func init() {
5656
// Add the global environment variables
5757
RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "",
5858
fmt.Sprintf("config file (default is %s)", filepath.Join("$HOME", ".dio", "config.toml")))
59-
RootCmd.PersistentFlags().StringVar(&cloud, "cloud", "https://dbhub.io:5550",
59+
RootCmd.PersistentFlags().StringVar(&cloud, "cloud", "https://db4s.dbhub.io",
6060
"Address of the DBHub.io cloud")
6161

6262
// Read all of our configuration data now

cmd/shared.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func generateConfig(cfgFile string) (err error) {
227227
_, err = fmt.Fprint(f, fmt.Sprintf(`cert = '%s'%s`, certPath, lineEnd))
228228
_, err = fmt.Fprint(f, lineEnd)
229229
_, err = fmt.Fprint(f, `[general]`+lineEnd)
230-
_, err = fmt.Fprint(f, `cloud = 'https://dbhub.io:5550'`+lineEnd)
230+
_, err = fmt.Fprint(f, `cloud = 'https://db4s.dbhub.io'`+lineEnd)
231231
_, err = fmt.Fprint(f, lineEnd)
232232
_, err = fmt.Fprint(f, `[user]`+lineEnd)
233233
_, err = fmt.Fprint(f, `name = 'Your Name'`+lineEnd)

config/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cachain = "/path/to/ca-chain-docker.cert.pem"
33
cert = "/path/to/your.cert.pem"
44

55
[general]
6-
cloud = "https://docker-dev.dbhub.io:5550"
6+
cloud = "https://db4s.dbhub.io"
77

88
[user]
99
name = "Some One"

0 commit comments

Comments
 (0)