Skip to content

Commit

Permalink
Ci : 개발 인프라 이전 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
CYY1007 authored Oct 13, 2023
1 parent 89d6a87 commit b545715
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ files:

# run app
killall java
java -Dfile.encoding=UTF-8 -jar $JAR_PATH
java -Dfile.encoding=UTF-8 -Dspring.profiles.active=dev -jar $JAR_PATH
File renamed without changes.
6 changes: 3 additions & 3 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
mkdir -p deploy
cp build/libs/*.jar deploy/application.jar
cp Procfile deploy/Procfile
cp -r .ebextensions deploy/.ebextensions
cp -r .ebextensions-dev deploy/.ebextensions
cp -r .platform deploy/.platform
cd deploy && zip -r deploy.zip .
Expand All @@ -53,8 +53,8 @@ jobs:
with:
aws_access_key: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}
application_name: briefing-prod
environment_name: Briefing-prod-env
application_name: briefing-dev
environment_name: Briefing-dev-env
version_label: github-action-${{ steps.current-time.outputs.formattedTime }}
region: ap-northeast-1
deployment_package: deploy/deploy.zip
Expand Down
66 changes: 58 additions & 8 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# default profile
spring:
datasource:
# url: jdbc:postgresql://localhost:5432/briefing
# username: postgres
# password: postgres
# url: jdbc:postgresql://localhost:5432/briefing
# username: postgres
# password: postgres
username: ${aws.db.username}
password: ${aws.db.password}
url: ${aws.db.url}
Expand All @@ -25,20 +26,18 @@ spring:
on-profile: default
data:
redis:
host: briefing-redis-cluster.0ot2cs.ng.0001.apn2.cache.amazonaws.com
# host: localhost
host: localhost
port: 6379
jwt:
header: Authorization
# dev server
secret: secretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecret
# secret : ${JWT_SECRET}
secret : ${JWT_SECRET}
authorities-key: authoritiesKey
access-token-validity-in-seconds: 1210000000 # 30 m
refresh-token-validity-in-seconds: 1210000000 # 14 d

openai:
token: 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
token: ${OEPN_API_TOKEN}
url:
chat: https://api.openai.com/v1/chat/completions

Expand All @@ -49,3 +48,54 @@ springdoc:
cache:
disabled: true
use-fqn: true

---
spring:
profiles:
active: dev
datasource:
username: ${aws.db.username}
password: ${aws.db.password}
url: ${aws.db.url}
driver-class-name: com.mysql.cj.jdbc.Driver
sql:
init:
mode: never
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
# show_sql: true
# format_sql: true
use_sql_comments: true
hbm2ddl:
auto: update
default_batch_fetch_size: 1000
config:
activate:
on-profile: default
data:
redis:
host: briefing-dev-redis.bjyb5r.ng.0001.apne1.cache.amazonaws.com
port: 6379
jwt:
header: Authorization
# dev server
secret: ${JWT_SECRET}
# secret : ${JWT_SECRET}
authorities-key: authoritiesKey
access-token-validity-in-seconds: 1210000000 # 30 m
refresh-token-validity-in-seconds: 1210000000 # 14 d

openai:
token: ${OPEN_API_TOKEN}
url:
chat: https://api.openai.com/v1/chat/completions

springdoc:
swagger-ui:
tags-sorter: alpha # alpha: 알파벳 순 태그 정렬, method: HTTP Method 순 정렬
operations-sorter: alpha # alpha: 알파벳 순 태그 정렬, method: HTTP Method 순 정렬
cache:
disabled: true
use-fqn: true

0 comments on commit b545715

Please sign in to comment.