diff --git a/config b/config index b9b8ab7..4ffb01b 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit b9b8ab7883e56c0c1982030261262f612f2f1b6e +Subproject commit 4ffb01bc12be2da636028a6042a4bedeaab6de4a diff --git a/src/main/java/icurriculum/global/config/SSHMongoConfig.java b/src/main/java/icurriculum/global/config/SSHMongoConfig.java index ca4de50..480481c 100644 --- a/src/main/java/icurriculum/global/config/SSHMongoConfig.java +++ b/src/main/java/icurriculum/global/config/SSHMongoConfig.java @@ -19,17 +19,8 @@ @RequiredArgsConstructor public class SSHMongoConfig { - private final SSHConfig initializer; - - @Value("${server}") - private String isServer; - @Value("${cloud.aws.ec2.database_endpoint}") private String databaseEndpoint; - - @Value("${cloud.aws.ec2.database_port}") - private int databasePort; - @Value("${spring.data.mongodb.username}") private String mongoUser; @Value("${spring.data.mongodb.password}") @@ -46,15 +37,6 @@ public class SSHMongoConfig { @Bean public MongoClient mongoClient() { - String host = databaseEndpoint; - int port = databasePort; - -// if (isServer.equals("false")) { -// log.info("isServer value: {}", isServer); -// Integer forwardedPort = initializer.buildSshConnection(databaseEndpoint, databasePort); -// host = "localhost"; -// port = forwardedPort; -// } try { ConnectionString connectionString = new ConnectionString(String.format( @@ -62,7 +44,6 @@ public MongoClient mongoClient() { mongoUser, mongoPassword, databaseEndpoint, - databaseName, appName ));