Skip to content

Commit 0ab301c

Browse files
authored
build: fix dev profile to use environment variables (#903)
1 parent cca02d7 commit 0ab301c

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/main/resources/application-dev.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ spring:
1212
opensearch:
1313
username: ${ELASTICSEARCH_USERNAME:}
1414
password: ${ELASTICSEARCH_PASSWORD:}
15-
uris: http://localhost:9200
15+
uris: ${ELASTICSEARCH_URL:http://localhost:9200}
1616
compression-enabled: false
1717
elasticsearch-server: ${ELASTICSEARCH_SERVER:false}
1818
kafka:
19-
bootstrap-servers: localhost:29092
19+
bootstrap-servers: ${KAFKA_HOST:localhost}:${KAFKA_PORT:9092}
2020
consumer:
2121
max-poll-records: ${KAFKA_CONSUMER_MAX_POLL_RECORDS:200}
2222
properties:
@@ -35,9 +35,9 @@ spring:
3535
max.in.flight.requests.per.connection: 5
3636
retries: 5
3737
datasource:
38-
username: folio_admin
39-
password: folio_admin
40-
url: jdbc:postgresql://localhost:5432/okapi_modules
38+
username: ${DB_USERNAME:folio_admin}
39+
password: ${DB_PASSWORD:folio_admin}
40+
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_DATABASE:okapi_modules}
4141
hikari:
4242
data-source-properties:
4343
reWriteBatchedInserts: true
@@ -81,7 +81,7 @@ folio:
8181
browse-classifications: ${BROWSE_CLASSIFICATIONS_ENABLED:true}
8282
browse-call-numbers: ${BROWSE_CALL_NUMBERS_ENABLED:true}
8383
indexing:
84-
data-format: ${INDEXING_DATA_FORMAT:smile}
84+
data-format: ${INDEXING_DATA_FORMAT:json}
8585
instance-children-index-enabled: ${INSTANCE_CHILDREN_INDEX_ENABLED:true}
8686
instance-children-index-delay-ms: ${INSTANCE_CHILDREN_INDEX_DELAY_MS:60000}
8787
sub-resource-batch-size: ${SUB_RESOURCE_BATCH_SIZE:100}
@@ -168,8 +168,10 @@ folio:
168168
logging:
169169
request:
170170
enabled: true
171+
level: full
171172
exchange:
172173
enabled: true
174+
level: full
173175

174176
server.port: 8081
175177

@@ -185,8 +187,9 @@ management:
185187

186188
logging:
187189
level:
188-
org.folio.spring.filter.IncomingRequestLoggingFilter: DEBUG
189-
org.opensearch.client: TRACE
190-
org.opensearch.client.sniffer: TRACE
191-
tracer: TRACE
190+
org.folio.spring.filter.IncomingRequestLoggingFilter: debug
191+
org.folio.spring.client.ExchangeLoggingInterceptor: debug
192+
org.opensearch.client: trace
193+
org.opensearch.client.sniffer: trace
194+
tracer: trace
192195

0 commit comments

Comments
 (0)