Update src/main/java/com/jamesquinley/DelegationServices/delegationServices.java

This commit is contained in:
James Quinley 2025-04-08 17:26:34 -07:00
parent 7a67306436
commit 8a457c85ff

View File

@ -30,7 +30,7 @@ public class delegationServices {
static Document Lrequest = null; static Document Lrequest = null;
public static void connectionInit() { public static void connectionInit() {
scReadconnectionString = new ConnectionString("mongodb+srv://edgenetworknode:yUiWfJBYCGwdRayj@matchnethop.hgxv0xd.mongodb.net/?retryWrites=true&w=majority"); scReadconnectionString = new ConnectionString("mongodb+srv://putmoongodbnode");
//connects to database that production clients can use //connects to database that production clients can use
System.out.println("This is a production server build (and will only work on that type)"); System.out.println("This is a production server build (and will only work on that type)");
scReadsettings = MongoClientSettings.builder() scReadsettings = MongoClientSettings.builder()
@ -43,10 +43,9 @@ public class delegationServices {
dClientDatabase = dClient.getDatabase("edgecomm"); dClientDatabase = dClient.getDatabase("edgecomm");
dCollection = dClientDatabase.getCollection("nettranslate"); dCollection = dClientDatabase.getCollection("nettranslate");
} }
static ConnectionString AccountCon = new ConnectionString("mongodb://matchmakingbackend:erhijew983ruefeyf@192.168.1.5:27017/gameservices?retryWrites=true&w=majority"); static ConnectionString AccountCon = new ConnectionString("mongodb://putmongodbdatabackend");
//mongodb://localhost:27017 //mongodb://localhost:27017
//erhijew983ruefeyf //mongodb://account:removed@x.x.x.x:27017/account?retryWrites=true&w=majority
//mongodb://accountserver:x2sJ8Qu0VVMifNLX@192.168.1.5:27017/account?retryWrites=true&w=majority
static MongoClientSettings AccountSettings = MongoClientSettings.builder() static MongoClientSettings AccountSettings = MongoClientSettings.builder()
.applyConnectionString(AccountCon) .applyConnectionString(AccountCon)
.applyToSocketSettings(builder -> .applyToSocketSettings(builder ->