Skip to content

Commit

Permalink
fix(db) adding ssl.mode=require to the PubSub connection
Browse files Browse the repository at this point in the history
ref: #26481
  • Loading branch information
wezell committed Oct 20, 2023
1 parent 1b98197 commit 0780f2e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dotCMS/src/main/java/com/dotcms/dotpubsub/PgNgDataSourceUrl.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,17 @@ private String createUrl(final String username, final String password, final Str
sw.append("/");
sw.append(data[data.length - 1]);

return sw.toString();
if(url.contains("ssl.mode=")){
return sw.toString();
}
if(url.contains("?")){
sw.append( "&");
}else{
sw.append( "?");
}

sw.append("ssl.mode=require");


}

Expand Down

0 comments on commit 0780f2e

Please sign in to comment.