Skip to content

Commit fad466e

Browse files
committed
undo changes - must set up for test
1 parent ea99964 commit fad466e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

klass-api/src/main/java/no/ssb/klass/api/config/OpenSearchConfig.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,11 @@ public class OpenSearchConfig extends AbstractOpenSearchConfiguration {
1717
@Value("${spring.elasticsearch.uris}")
1818
private String opensearchUri;
1919

20-
@Value("${open.search.username}")
21-
private String username;
22-
23-
@Value("${open.search.password}")
24-
private String password;
25-
26-
@Value("${open.search.uri}")
27-
private String uri;
28-
2920
@Override
3021
@Bean
3122
public RestHighLevelClient opensearchClient() {
3223
ClientConfiguration clientConfiguration = ClientConfiguration.builder()
33-
.connectedTo(uri.replace("http://", "").replace("https://", ""))
34-
.withBasicAuth(username, password)
24+
.connectedTo(opensearchUri.replace("http://", "").replace("https://", ""))
3525
.withConnectTimeout(20000)
3626
.withSocketTimeout(300000)
3727
.build();

0 commit comments

Comments
 (0)