feat: standardize glow profile configuration
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 1m39s

This commit is contained in:
jade
2026-08-10 09:45:13 +09:00
parent 7819b11ce3
commit dd36247bf7
15 changed files with 200 additions and 53 deletions

View File

@@ -150,6 +150,12 @@ public class PodScaffolder {
String applicationLocalYml = """ String applicationLocalYml = """
# Local 환경 전용 설정 (H2 메모리 DB 등) # Local 환경 전용 설정 (H2 메모리 DB 등)
spring: spring:
config:
activate:
on-profile: local
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-local.yml
datasource: datasource:
url: jdbc:p6spy:h2:mem:testdb;DB_CLOSE_DELAY=-1; url: jdbc:p6spy:h2:mem:testdb;DB_CLOSE_DELAY=-1;
driverClassName: com.p6spy.engine.spy.P6SpyDriver driverClassName: com.p6spy.engine.spy.P6SpyDriver
@@ -195,6 +201,14 @@ public class PodScaffolder {
server: server:
port: ${PORT:%s} port: ${PORT:%s}
spring:
config:
activate:
on-profile: dev
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-dev.yml
axhub: axhub:
gateway: gateway:
url: https://axhubmcp.devjun.net url: https://axhubmcp.devjun.net
@@ -236,6 +250,14 @@ public class PodScaffolder {
server: server:
port: ${PORT:%s} port: ${PORT:%s}
spring:
config:
activate:
on-profile: test
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-test.yml
axhub: axhub:
gateway: gateway:
url: ${AXHUB_GATEWAY_URL} url: ${AXHUB_GATEWAY_URL}
@@ -248,6 +270,14 @@ public class PodScaffolder {
server: server:
port: ${PORT:%s} port: ${PORT:%s}
spring:
config:
activate:
on-profile: prod
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-prod.yml
axhub: axhub:
gateway: gateway:
url: ${AXHUB_GATEWAY_URL} url: ${AXHUB_GATEWAY_URL}

View File

@@ -1,5 +1,19 @@
# Glow 개발 환경 확장 설정 # Glow 개발 환경 설정
spring: spring:
config: config:
activate: activate:
on-profile: dev on-profile: dev
glow:
communication:
common:
env-type: D
mci:
host: ${GLOW_COMMUNICATION_MCI_HOST:https://dev-ichmci.shinhanlife.co.kr}
port: ${GLOW_COMMUNICATION_MCI_PORT:26160}
extmci:
host: ${GLOW_COMMUNICATION_EXTMCI_HOST:http://host.docker.internal}
port: ${GLOW_COMMUNICATION_EXTMCI_PORT:8080}
eai:
host: ${GLOW_COMMUNICATION_EAI_HOST:tcp://host.docker.internal}
port: ${GLOW_COMMUNICATION_EAI_PORT:9999}

View File

@@ -1,5 +1,19 @@
# Glow 로컬 환경 확장 설정 # Glow 로컬 환경 설정
spring: spring:
config: config:
activate: activate:
on-profile: local on-profile: local
glow:
communication:
common:
env-type: D
mci:
host: ${GLOW_COMMUNICATION_MCI_HOST:http://localhost}
port: ${GLOW_COMMUNICATION_MCI_PORT:8080}
extmci:
host: ${GLOW_COMMUNICATION_EXTMCI_HOST:http://localhost}
port: ${GLOW_COMMUNICATION_EXTMCI_PORT:8080}
eai:
host: ${GLOW_COMMUNICATION_EAI_HOST:http://localhost}
port: ${GLOW_COMMUNICATION_EAI_PORT:8080}

View File

@@ -1,5 +1,19 @@
# Glow 운영 환경 확장 설정 # Glow 운영 환경 설정
spring: spring:
config: config:
activate: activate:
on-profile: prod on-profile: prod
glow:
communication:
common:
env-type: P
mci:
host: ${GLOW_COMMUNICATION_MCI_HOST}
port: ${GLOW_COMMUNICATION_MCI_PORT}
extmci:
host: ${GLOW_COMMUNICATION_EXTMCI_HOST}
port: ${GLOW_COMMUNICATION_EXTMCI_PORT}
eai:
host: ${GLOW_COMMUNICATION_EAI_HOST}
port: ${GLOW_COMMUNICATION_EAI_PORT}

View File

@@ -1,5 +1,19 @@
# Glow 테스트 환경 확장 설정 # Glow 테스트 환경 설정
spring: spring:
config: config:
activate: activate:
on-profile: test on-profile: test
glow:
communication:
common:
env-type: T
mci:
host: ${GLOW_COMMUNICATION_MCI_HOST}
port: ${GLOW_COMMUNICATION_MCI_PORT}
extmci:
host: ${GLOW_COMMUNICATION_EXTMCI_HOST}
port: ${GLOW_COMMUNICATION_EXTMCI_PORT}
eai:
host: ${GLOW_COMMUNICATION_EAI_HOST}
port: ${GLOW_COMMUNICATION_EAI_PORT}

View File

@@ -1,9 +1,5 @@
# ============================================================================== # AX HUB Tool Pod 공통 Glow Framework 설정입니다.
# [AXHub 공통 환경 설정 파일] (Glow Framework 연동용) # Tool Pod의 application-{profile}.yml에서 이 파일과 환경별 Glow 설정을 함께 import합니다.
# 이 파일은 axhub-tool-core에 위치하며, 각 툴 파드들이 상속받아 사용합니다.
# ==============================================================================
# 1. 로깅(Logging) 공통 설정
logging: logging:
level: level:
root: INFO root: INFO
@@ -13,42 +9,31 @@ logging:
pattern: pattern:
console: "[%d{yyyy-MM-dd HH:mm:ss.SSS}] [%-5level] [%thread] %logger{36} - %msg%n" console: "[%d{yyyy-MM-dd HH:mm:ss.SSS}] [%-5level] [%thread] %logger{36} - %msg%n"
# 2. Redis 공통 설정 (Gateway 연동 및 캐싱)
spring: spring:
data: data:
redis: redis:
host: 127.0.0.1 # TODO: 실제 Redis 망 IP로 변경 host: ${SPRING_DATA_REDIS_HOST:127.0.0.1}
port: 6379 # TODO: 실제 Redis 포트로 변경 port: ${SPRING_DATA_REDIS_PORT:6379}
password: "" # TODO: 실제 비밀번호 입력 password: ${SPRING_DATA_REDIS_PASSWORD:}
# 3. 신한라이프 Glow Framework 통신 (MCI / EAI) 설정
glow: glow:
communication: #Communication 설정 communication:
common: http:
env-type: D # 대내표준 헤더의 환경 타입정보 (D: 개발, T: 테스트, P: 운영) connection-timeout: 5
http: # HTTP 비표준 통신 설정 read-timeout: 5
connection-timeout: 5 # 연결 타임아웃 시간 (초 단위) mci:
read-timeout: 5 # 읽기 타임아웃 시간 (초 단위)
mci: # 개발계 대내 MCI 통신 설정
host: https://dev-ichmci.shinhanlife.co.kr
port: 26160
uri: /ntl_mci/dap_rcv uri: /ntl_mci/dap_rcv
receive-uri: /itrf/mciReceive receive-uri: /itrf/mciReceive
connection-timeout: 300 connection-timeout: 300
read-timeout: 300 read-timeout: 300
encoding: UTF-8 encoding: UTF-8
extmci: # 대외MCI 통신 설정 extmci:
host: http://host.docker.internal # 대외MCI 호스트 주소 uri: /extmci
port: 8080 # 대외MCI 포트 번호 json-uri: /extmciJson
uri: /extmci # 대외MCI URI 정보 receive-uri: /app/extMciReceive
json-uri: /extmciJson # 대외MCI JSON방식 URI 정보 connection-timeout: 5
receive-uri: /app/extMciReceive # 대외MCI 수신 URI read-timeout: 30
connection-timeout: 5 # 연결 타임아웃 시간 (초 단위) encoding: EUC-KR
read-timeout: 30 # 읽기 타임아웃 시간 (초 단위)
encoding: EUC-KR # 대외MCI 인코딩 정보
eai: # EAI 통신 설정
host: tcp://host.docker.internal # EAI 호스트 주소 (TODO: 실제 주소로 변경)
port: 9999 # EAI 포트 번호
websocket: websocket:
endpoint: "/ws-glow" endpoint: /ws-glow
allowed-origins: "*" allowed-origins: "*"

View File

@@ -41,5 +41,13 @@ class PodScaffolderTest {
.contains("${AXHUB_GATEWAY_URL}")); .contains("${AXHUB_GATEWAY_URL}"));
assertTrue(Files.readString(resources.resolve("application-prod.yml")) assertTrue(Files.readString(resources.resolve("application-prod.yml"))
.contains("${AXHUB_TOOL_URL}")); .contains("${AXHUB_TOOL_URL}"));
assertTrue(Files.readString(resources.resolve("application-local.yml"))
.contains("classpath:glow/application-glow-local.yml"));
assertTrue(Files.readString(resources.resolve("application-dev.yml"))
.contains("classpath:glow/application-glow-dev.yml"));
assertTrue(Files.readString(resources.resolve("application-test.yml"))
.contains("classpath:glow/application-glow-test.yml"));
assertTrue(Files.readString(resources.resolve("application-prod.yml"))
.contains("classpath:glow/application-glow-prod.yml"));
} }
} }

View File

@@ -6,6 +6,14 @@ axhub:
gateway: gateway:
url: https://axhubmcp.devjun.net url: https://axhubmcp.devjun.net
spring:
config:
activate:
on-profile: dev
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-dev.yml
eims: eims:
http: http:
url: http://localhost:${server.port}/api/gateway url: http://localhost:${server.port}/api/gateway
@@ -22,7 +30,3 @@ eims:
url: http://localhost:${server.port}/api/mock/esb/api url: http://localhost:${server.port}/api/mock/esb/api
mcistring: mcistring:
url: http://localhost:${server.port}/api/mock/esb/string url: http://localhost:${server.port}/api/mock/esb/string
spring:
config:
import: optional:classpath:glow/application-glow.yml

View File

@@ -1,5 +1,11 @@
# Local ?섍꼍 ?꾩슜 ?ㅼ젙 (H2 硫붾え由?DB ?? # Local 환경 전용 설정 (H2 메모리 DB 등)
spring: spring:
config:
activate:
on-profile: local
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-local.yml
datasource: datasource:
url: jdbc:p6spy:h2:mem:testdb;DB_CLOSE_DELAY=-1; url: jdbc:p6spy:h2:mem:testdb;DB_CLOSE_DELAY=-1;
driverClassName: com.p6spy.engine.spy.P6SpyDriver driverClassName: com.p6spy.engine.spy.P6SpyDriver

View File

@@ -1,6 +1,14 @@
server: server:
port: ${PORT:8084} port: ${PORT:8084}
spring:
config:
activate:
on-profile: prod
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-prod.yml
axhub: axhub:
gateway: gateway:
url: ${AXHUB_GATEWAY_URL} url: ${AXHUB_GATEWAY_URL}

View File

@@ -1,6 +1,14 @@
server: server:
port: ${PORT:8084} port: ${PORT:8084}
spring:
config:
activate:
on-profile: test
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-test.yml
axhub: axhub:
gateway: gateway:
url: ${AXHUB_GATEWAY_URL} url: ${AXHUB_GATEWAY_URL}

View File

@@ -6,6 +6,14 @@ axhub:
gateway: gateway:
url: https://axhubmcp.devjun.net url: https://axhubmcp.devjun.net
spring:
config:
activate:
on-profile: dev
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-dev.yml
eims: eims:
http: http:
url: http://localhost:${server.port}/api/gateway url: http://localhost:${server.port}/api/gateway
@@ -22,7 +30,3 @@ eims:
url: http://localhost:${server.port}/api/mock/esb/api url: http://localhost:${server.port}/api/mock/esb/api
mcistring: mcistring:
url: http://localhost:${server.port}/api/mock/esb/string url: http://localhost:${server.port}/api/mock/esb/string
spring:
config:
import: optional:classpath:glow/application-glow.yml

View File

@@ -1,5 +1,11 @@
# Local ?섍꼍 ?꾩슜 ?ㅼ젙 (H2 硫붾え由?DB ?? # Local 환경 전용 설정 (H2 메모리 DB 등)
spring: spring:
config:
activate:
on-profile: local
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-local.yml
datasource: datasource:
url: jdbc:p6spy:h2:mem:testdb;DB_CLOSE_DELAY=-1; url: jdbc:p6spy:h2:mem:testdb;DB_CLOSE_DELAY=-1;
driverClassName: com.p6spy.engine.spy.P6SpyDriver driverClassName: com.p6spy.engine.spy.P6SpyDriver
@@ -36,4 +42,4 @@ axhub:
gateway: gateway:
url: http://localhost:8081 url: http://localhost:8081
tool: tool:
url: ${AXHUB_TOOL_URL:http://localhost:${server.port}} url: ${AXHUB_TOOL_URL:http://localhost:${server.port}}

View File

@@ -0,0 +1,16 @@
server:
port: ${PORT:8082}
spring:
config:
activate:
on-profile: prod
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-prod.yml
axhub:
gateway:
url: ${AXHUB_GATEWAY_URL}
tool:
url: ${AXHUB_TOOL_URL}

View File

@@ -0,0 +1,16 @@
server:
port: ${PORT:8082}
spring:
config:
activate:
on-profile: test
import:
- classpath:glow/application-glow.yml
- classpath:glow/application-glow-test.yml
axhub:
gateway:
url: ${AXHUB_GATEWAY_URL}
tool:
url: ${AXHUB_TOOL_URL}