<aside> ๐ก ์์ด๋/๋น๋ฐ๋ฒํธ
IAM ๊ณ์ ์ฌ์ฉ - csv๋ก ์ ๋ฌ ์๋ฃ
</aside>
<aside> ๐ก ์๋ฒ๋ ์์ ํ ์ฐ๊ฒฐ๋๊ธฐ ์ ๊น์ง ๋ฏธ์ฌ์ฉ์ ์ค์ง ์ํ๋ก ๋ ์์ ํ์์ ์ธ์คํด์ค ์์ํ์ฌ ์ฌ์ฉํ ๊ฒ.
aws ๋ก๊ทธ์ธ ํ, EC2 ์ธ์คํด์ค ํผ๋ธ๋ฆญ IPv4 ์ฃผ์๋ก putty ์ ์ ํ docker logs -f {{ ์ปจํ ์ด๋ id }} ๋ช ๋ น์ด๋ก ๋ก๊ทธ ํ์ธ ๊ฐ๋ฅ ์ปจํ ์ด๋ id๋ docker ps๋ช ๋ น์ด๋ก ํ์ธ ๊ฐ๋ฅ!
</aside>
spring:
profiles:
active: dev
include: db, oauth, jwt, mail, aws
springdoc:
swagger-ui:
path: /swagger-ui.html
enabled: true
api-docs:
path: /v3/api-docs
enabled: true
packages-to-scan: com.balybus.galaxy
management:
metrics:
tags:
application:
${spring.application.name}
endpoints:
web:
exposure:
include: prometheus
cors:
allowed:
origins: <http://52.78.187.236:8080>, <http://52.78.187.236:80>, <http://52.78.187.236:5173>, <http://52.78.187.236>, <http://52.78.187.236/>
spring:
jpa:
generate-ddl: true
hibernate:
ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
format_sql: true
use_sql_comments: true
show-sql: true
--- # local ์ค์
spring:
config:
activate:
on-profile: local
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: 'jdbc:mysql://127.0.0.1:3306/galaxy?serverTimezone=Asia/Seoul'
username: root
password: ma29562956!
locations:
file-archive: "C:\\blaybusPics"
data:
redis:
host: localhost
port: 6379
password: password -- ๋ก์ปฌ์ ์ค์นํ ๋ ๋์ค ๋น๋ฐ๋ฒํธ๋ก ์
๋ ฅํด์ฃผ์ธ์. ๋น๋ฐ๋ฒํธ ์ค์ ์ ์ํ๊ฒฝ์ฐ, ํด๋น๋ถ๋ถ ์ฃผ์์ฒ๋ฆฌํ์๋ฉด ๋ฉ๋๋ค.
--- # dev ์ค์
spring:
config:
activate:
on-profile: dev
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: 'jdbc:mysql://blaybus-backend-database.clmk82s8ew0z.ap-northeast-2.rds.amazonaws.com:3306/galaxy?serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&useSSL=false'
username: admin
password: ma29562956!
hikari:
minimum-idle: 5
maximum-pool-size: 20
idle-timeout: 30000
max-lifetime: 1800000
connection-timeout: 30000
validation-timeout: 5000
leak-detection-threshold: 15000
locations:
file-archive: "/app/blaybusPics"
data:
redis:
host: blaybus_redis #๋ ์ปจํ
์ด๋๊ฐ ๊ฐ์ docker ๋คํธ์ํฌ์ ์๋ค๋ฉด, ์ปจํ
์ด๋ ๋ช
์ผ๋ก ์ง์ ํด์ผํจ.
port: 6379
password: galaxyBE1234