From ef6b0cb3fa4be896233ce2eb704eac34e9a5b943 Mon Sep 17 00:00:00 2001 From: jcchoi Date: Wed, 17 Sep 2025 11:01:34 +0900 Subject: [PATCH] Upload files to "/" --- board-service-dev.yml | 50 +++++++++++++++++++++++++ board-service-prod.yml | 50 +++++++++++++++++++++++++ cms-service-dev.yml | 84 ++++++++++++++++++++++++++++++++++++++++++ cms-service-prod.yml | 84 ++++++++++++++++++++++++++++++++++++++++++ user-service-dev.yml | 54 +++++++++++++++++++++++++++ 5 files changed, 322 insertions(+) create mode 100644 board-service-dev.yml create mode 100644 board-service-prod.yml create mode 100644 cms-service-dev.yml create mode 100644 cms-service-prod.yml create mode 100644 user-service-dev.yml diff --git a/board-service-dev.yml b/board-service-dev.yml new file mode 100644 index 0000000..70b92b5 --- /dev/null +++ b/board-service-dev.yml @@ -0,0 +1,50 @@ +db: + hostname: 192.168.0.102 + +database: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + +spring: + datasource: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + username: msaportal + password: msaportal + driver-class-name: org.postgresql.Driver + hikari: + minimum-idle: 5 # 너무 많은 유휴 연결 방지 + maximum-pool-size: 20 # DB 부하와 병목 최소화 + idle-timeout: 30000 # 30초 후 유휴 연결 제거 + max-lifetime: 1800000 # 30분 후 커넥션 재생성 + connection-timeout: 5000 # 커넥션 요청 타임아웃 (5초) + data-source-properties: + cachePrepStmts: true + prepStmtCacheSize: 512 + prepStmtCacheSqlLimit: 4096 + useServerPrepStmts: true + cloud: + stream: + bindings: + attachmentEntity-out-0: # 첨부파일 entity 정보 업데이트 하기 위한 이벤트 + destination: attachment-entity.topic # queue name + group: attachment + hardDeleteEntity-out-0: # 첨부파일 entity 정보 물리 삭제 하기 위한 이벤트 + destination: hard-delete-entity.topic # queue name + group: attachment + jpa: + database-platform: org.hibernate.dialect.PostgreSQLDialect + generate-ddl: true + hibernate: + ddl-auto: none + properties: + hibernate: + dialect: org.hibernate.dialect.PostgreSQLDialect + format_sql: true + globally_quoted_identifiers: false + default_batch_fetch_size: 1000 + open-in-view: false + show-sql: true + defer-datasource-initialization: true + sql: + init: + mode: always + platform: postgresql diff --git a/board-service-prod.yml b/board-service-prod.yml new file mode 100644 index 0000000..70b92b5 --- /dev/null +++ b/board-service-prod.yml @@ -0,0 +1,50 @@ +db: + hostname: 192.168.0.102 + +database: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + +spring: + datasource: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + username: msaportal + password: msaportal + driver-class-name: org.postgresql.Driver + hikari: + minimum-idle: 5 # 너무 많은 유휴 연결 방지 + maximum-pool-size: 20 # DB 부하와 병목 최소화 + idle-timeout: 30000 # 30초 후 유휴 연결 제거 + max-lifetime: 1800000 # 30분 후 커넥션 재생성 + connection-timeout: 5000 # 커넥션 요청 타임아웃 (5초) + data-source-properties: + cachePrepStmts: true + prepStmtCacheSize: 512 + prepStmtCacheSqlLimit: 4096 + useServerPrepStmts: true + cloud: + stream: + bindings: + attachmentEntity-out-0: # 첨부파일 entity 정보 업데이트 하기 위한 이벤트 + destination: attachment-entity.topic # queue name + group: attachment + hardDeleteEntity-out-0: # 첨부파일 entity 정보 물리 삭제 하기 위한 이벤트 + destination: hard-delete-entity.topic # queue name + group: attachment + jpa: + database-platform: org.hibernate.dialect.PostgreSQLDialect + generate-ddl: true + hibernate: + ddl-auto: none + properties: + hibernate: + dialect: org.hibernate.dialect.PostgreSQLDialect + format_sql: true + globally_quoted_identifiers: false + default_batch_fetch_size: 1000 + open-in-view: false + show-sql: true + defer-datasource-initialization: true + sql: + init: + mode: always + platform: postgresql diff --git a/cms-service-dev.yml b/cms-service-dev.yml new file mode 100644 index 0000000..ac9235d --- /dev/null +++ b/cms-service-dev.yml @@ -0,0 +1,84 @@ +db: + hostname: 192.168.0.102 + +database: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + +spring: + datasource: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + username: msaportal + password: msaportal + driver-class-name: org.postgresql.Driver + hikari: + minimum-idle: 5 # 너무 많은 유휴 연결 방지 + maximum-pool-size: 20 # DB 부하와 병목 최소화 + idle-timeout: 30000 # 30초 후 유휴 연결 제거 + max-lifetime: 1800000 # 30분 후 커넥션 재생성 + connection-timeout: 5000 # 커넥션 요청 타임아웃 (5초) + data-source-properties: + cachePrepStmts: true + prepStmtCacheSize: 512 + prepStmtCacheSqlLimit: 4096 + useServerPrepStmts: true + cloud: + stream: + bindings: + attachmentEntity-out-0: # 첨부파일 entity 정보 업데이트 하기 위한 이벤트 + destination: attachment-entity.topic # queue name + group: attachment + jpa: + database-platform: org.hibernate.dialect.PostgreSQLDialect + generate-ddl: true + hibernate: + ddl-auto: none + properties: + hibernate: + dialect: org.hibernate.dialect.PostgreSQLDialect + format_sql: true + globally_quoted_identifiers: false + default_batch_fetch_size: 1000 + show-sql: true + defer-datasource-initialization: true + servlet: + multipart: + enabled: true + max-file-size: -1 + max-request-size: -1 + sql: + init: + mode: always + platform: postgresql + + +info: + app: + name: CMS Service + description: 컨텐츠 관리 기능을 제공 + java: + version: ${java.version} + spring: + framework: + version: ${spring-framework.version} + boot: + version: ${spring-boot.version} + +# Swagger 설정 +springdoc: + swagger-ui: + path: /swagger-ui.html + groups-order: DESC + operations-sorter: method + disable-swagger-default-url: true + api-docs: + path: /v3/api-docs + show-actuator: true + default-consumes-media-type: application/json + default-produces-media-type: application/json + paths-to-match: /api/** # Actuator 제외하고 문서화할 경로만 포함 +logging: + level: + root: INFO + org.egovframe: DEBUG + org.hibernate.SQL: DEBUG + org.hibernate.type.descriptor.sql.BasicBinder: TRACE diff --git a/cms-service-prod.yml b/cms-service-prod.yml new file mode 100644 index 0000000..ac9235d --- /dev/null +++ b/cms-service-prod.yml @@ -0,0 +1,84 @@ +db: + hostname: 192.168.0.102 + +database: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + +spring: + datasource: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + username: msaportal + password: msaportal + driver-class-name: org.postgresql.Driver + hikari: + minimum-idle: 5 # 너무 많은 유휴 연결 방지 + maximum-pool-size: 20 # DB 부하와 병목 최소화 + idle-timeout: 30000 # 30초 후 유휴 연결 제거 + max-lifetime: 1800000 # 30분 후 커넥션 재생성 + connection-timeout: 5000 # 커넥션 요청 타임아웃 (5초) + data-source-properties: + cachePrepStmts: true + prepStmtCacheSize: 512 + prepStmtCacheSqlLimit: 4096 + useServerPrepStmts: true + cloud: + stream: + bindings: + attachmentEntity-out-0: # 첨부파일 entity 정보 업데이트 하기 위한 이벤트 + destination: attachment-entity.topic # queue name + group: attachment + jpa: + database-platform: org.hibernate.dialect.PostgreSQLDialect + generate-ddl: true + hibernate: + ddl-auto: none + properties: + hibernate: + dialect: org.hibernate.dialect.PostgreSQLDialect + format_sql: true + globally_quoted_identifiers: false + default_batch_fetch_size: 1000 + show-sql: true + defer-datasource-initialization: true + servlet: + multipart: + enabled: true + max-file-size: -1 + max-request-size: -1 + sql: + init: + mode: always + platform: postgresql + + +info: + app: + name: CMS Service + description: 컨텐츠 관리 기능을 제공 + java: + version: ${java.version} + spring: + framework: + version: ${spring-framework.version} + boot: + version: ${spring-boot.version} + +# Swagger 설정 +springdoc: + swagger-ui: + path: /swagger-ui.html + groups-order: DESC + operations-sorter: method + disable-swagger-default-url: true + api-docs: + path: /v3/api-docs + show-actuator: true + default-consumes-media-type: application/json + default-produces-media-type: application/json + paths-to-match: /api/** # Actuator 제외하고 문서화할 경로만 포함 +logging: + level: + root: INFO + org.egovframe: DEBUG + org.hibernate.SQL: DEBUG + org.hibernate.type.descriptor.sql.BasicBinder: TRACE diff --git a/user-service-dev.yml b/user-service-dev.yml new file mode 100644 index 0000000..6300a64 --- /dev/null +++ b/user-service-dev.yml @@ -0,0 +1,54 @@ +db: + hostname: 192.168.0.102 + +database: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + +spring: + datasource: + url: jdbc:postgresql://${db.hostname:localhost}:5432/CS0227?currentSchema=sm_bs_cs + username: msaportal + password: msaportal + driver-class-name: org.postgresql.Driver + hikari: + minimum-idle: 5 # 너무 많은 유휴 연결 방지 + maximum-pool-size: 20 # DB 부하와 병목 최소화 + idle-timeout: 30000 # 30초 후 유휴 연결 제거 + max-lifetime: 1800000 # 30분 후 커넥션 재생성 + connection-timeout: 5000 # 커넥션 요청 타임아웃 (5초) + data-source-properties: + cachePrepStmts: true + prepStmtCacheSize: 512 + prepStmtCacheSqlLimit: 4096 + useServerPrepStmts: true + jpa: + database-platform: org.hibernate.dialect.PostgreSQLDialect + open-in-view: false + generate-ddl: true + hibernate: + ddl-auto: none + properties: + hibernate: + format_sql: true + default_batch_fetch_size: 1000 + jdbc: + lob: + non_contextual_creation: true + show-sql: true + defer-datasource-initialization: true + sql: + init: + mode: always + platform: postgresql + mail: # 비밀번호 변경 이메일 발송 + host: smtp.gmail.com # smtp host + port: 587 # smtp port + username: email_username # 계정 + password: 'email_password_0704' # 비밀번호 - 구글 보안 2단계 인증 해제, 보안 수준이 낮은 앱의 액세스 허용(https://myaccount.google.com/lesssecureapps) + properties: + mail: + smtp: + auth: true + starttls: + enable: true + required: true