gc-guide-api/src/main/resources/application.yml
htlee 04f3de3890 fix(cors): application.yml CORS 기본값에 wing.gc-si.dev 추가
@Value 기본값보다 application.yml이 우선 적용되므로
application.yml에도 wing.gc-si.dev, localhost:5175 등 추가.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 09:07:17 +09:00

60 lines
1.4 KiB
YAML

spring:
application:
name: gc-guide-api
# 프로필별 DB 설정
profiles:
active: ${SPRING_PROFILES_ACTIVE:local}
jpa:
open-in-view: false
defer-datasource-initialization: true
properties:
hibernate:
format_sql: true
jackson:
serialization:
write-dates-as-timestamps: false
server:
port: ${SERVER_PORT:8080}
# 앱 설정
app:
jwt:
secret: ${JWT_SECRET:gc-guide-dev-jwt-secret-key-must-be-at-least-256-bits-long}
expiration-ms: ${JWT_EXPIRATION:86400000} # 24시간
google:
client-id: ${GOOGLE_CLIENT_ID:}
# Optional: allow multiple audiences (comma-separated) for shared auth across multiple frontends.
client-ids: ${GOOGLE_CLIENT_IDS:${GOOGLE_CLIENT_ID:}}
allowed-email-domain: ${ALLOWED_EMAIL_DOMAIN:gcsc.co.kr}
wing:
ais:
upstream-base: ${WING_AIS_UPSTREAM_BASE:http://211.208.115.83:8041}
timeout-ms: ${WING_AIS_TIMEOUT_MS:20000}
cors:
allowed-origins: ${CORS_ORIGINS:http://localhost:5173,http://localhost:5175,http://127.0.0.1:5175,https://guide.gc-si.dev,https://wing.gc-si.dev}
# SpringDoc / Swagger
springdoc:
api-docs:
path: /v3/api-docs
swagger-ui:
path: /swagger-ui.html
tags-sorter: alpha
operations-sorter: method
doc-expansion: none
display-request-duration: true
# Actuator
management:
endpoints:
web:
exposure:
include: health,info
endpoint:
health:
show-details: when-authorized