Skip to content

Commit

Permalink
chore : change server port
Browse files Browse the repository at this point in the history
  • Loading branch information
JiwonKKang committed Sep 29, 2024
1 parent 0da9211 commit 4b955c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ springdoc:
default-models-expand-depth: -1
server:
shutdown: graceful
port: 8989

Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
@EnableElasticsearchRepositories(basePackages = "com.univ.tracedin")
public class ElasticSearchConfig extends ElasticsearchConfiguration {

@Value("${elasticsearch.host}")
private String host;
@Value("${elasticsearch.host-and-port}")
private String hostAndPort;

@Override
public ClientConfiguration clientConfiguration() {
return ClientConfiguration.builder().connectedTo(host).build();
return ClientConfiguration.builder().connectedTo(hostAndPort).build();
}
}
4 changes: 2 additions & 2 deletions tracedin-infra/src/main/resources/application-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spring:
elasticsearch:
client:
host: ${ELASTIC_HOST}
host: ${ELASTICSEARCH_HOST:localhost:9200}
host-and-port: ${ELASTICSEARCH_HOST:localhost:9200}
port: 9200

---
Expand All @@ -19,5 +19,5 @@ spring:
elasticsearch:
client:
host: ${ELASTIC_HOST}
host: ${ELASTICSEARCH_HOST:es:9200}
host-and-port: ${ELASTICSEARCH_HOST:es:9200}
port: 9200

0 comments on commit 4b955c4

Please sign in to comment.