Skip to content

Commit

Permalink
Merge pull request #141 from FigureTechnologies/config_stream_port
Browse files Browse the repository at this point in the history
Config the stream port
  • Loading branch information
rchaing-figure authored Jun 22, 2023
2 parents 5747adc + 6f3bc84 commit 0b318bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data class Config (
val hrp: String,
val upload: UploadConfig = UploadConfig.empty(),
val apiPort: Int,
val streamPort: Int,
val blockApi: BlockApiConfig,
val dbConfig: DBConfig,
val badBlockRange: List<Long>,
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/tech/figure/aggregate/service/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ fun main(args: Array<String>) {
val server = GrpcServer.embeddedServer(
grpcServices,
developmentMode = false,
connector = Connectors.http("0.0.0.0", port = 8082),
connector = Connectors.http("0.0.0.0", port = config.streamPort),
module = { install(ContentNegotiation) { jackson() } }
)

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ws_node: ${WS_NODE}
api_port: ${API_PORT}
bad_block_range: ${ONE_DOT_ELEVEN_BAD_BLOCK_RANGE}
msg_fee_height: ${MSG_FEE_HEIGHT}
stream_port: ${STREAM_PORT:-7777}

dbConfig:
dbHost: ${DB_HOST}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/local.env.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ BLOCK_API_HOST=block-api.test.figure.tech
BLOCK_API_PORT=443
BLOCK_API_API_KEY=UcLBCsTFUsxuvY9hwhuB9zhuf3oDz2
BLOCK_API_MAX_BLOCK_SIZE=7000000
STREAM_PORT=7777

0 comments on commit 0b318bc

Please sign in to comment.