Skip to content

Commit a071be2

Browse files
authored
Merge pull request #3 from couchbase-examples/capella
Capella connection string
2 parents 25b0945 + 190bf76 commit a071be2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/trycb/config/CouchbaseConfiguration.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ public class CouchbaseConfiguration extends AbstractCouchbaseConfiguration {
1616

1717
@Override
1818
public String getConnectionString() {
19+
// To connect to capella:
20+
// - with ssl certificate validation:
21+
// return "couchbases://cb.jnym5s9gv4ealbe.cloud.couchbase.com"
22+
// - without ssl validation:
23+
// return "couchbases://cb.jnym5s9gv4ealbe.cloud.couchbase.com?tls=no_verify"
24+
// (replace cb.jnym5s9gv4ealbe.cloud.couchbase.com with your Capella cluster address)
25+
//
1926
return "couchbase://127.0.0.1";
2027
}
2128

0 commit comments

Comments
 (0)