Skip to content

Commit

Permalink
#42 Refactor: 배포 환경에서 환경변수 자동 주입용 파일 분리 [박한솔]
Browse files Browse the repository at this point in the history
  • Loading branch information
pjhcsols committed Jan 10, 2025
1 parent d151a94 commit 255a946
Show file tree
Hide file tree
Showing 17 changed files with 141 additions and 217 deletions.
2 changes: 2 additions & 0 deletions web3-credential-server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ out/
### Mac OS ###
.DS_Store

# application-secret
/application-secret.yaml
28 changes: 14 additions & 14 deletions web3-credential-server/build/reports/tests/test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Test Summary</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">1.076s</div>
<div class="counter">2.970s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -153,7 +153,7 @@ <h2>Packages</h2>
<td>3</td>
<td>3</td>
<td>0</td>
<td>0.006s</td>
<td>0.007s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -163,7 +163,7 @@ <h2>Packages</h2>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0.610s</td>
<td>1.510s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -173,7 +173,7 @@ <h2>Packages</h2>
<td>2</td>
<td>2</td>
<td>0</td>
<td>0.447s</td>
<td>1.450s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -183,7 +183,7 @@ <h2>Packages</h2>
<td>6</td>
<td>6</td>
<td>0</td>
<td>0.002s</td>
<td>0s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -193,7 +193,7 @@ <h2>Packages</h2>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0.001s</td>
<td>0s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -203,7 +203,7 @@ <h2>Packages</h2>
<td>2</td>
<td>2</td>
<td>0</td>
<td>0.010s</td>
<td>0.003s</td>
<td class="failures">0%</td>
</tr>
</tbody>
Expand Down Expand Up @@ -240,7 +240,7 @@ <h2>Classes</h2>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0s</td>
<td>0.001s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -260,7 +260,7 @@ <h2>Classes</h2>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0.610s</td>
<td>1.510s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -270,7 +270,7 @@ <h2>Classes</h2>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0.447s</td>
<td>1.450s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -290,7 +290,7 @@ <h2>Classes</h2>
<td>6</td>
<td>6</td>
<td>0</td>
<td>0.002s</td>
<td>0s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -300,7 +300,7 @@ <h2>Classes</h2>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0.001s</td>
<td>0s</td>
<td class="failures">0%</td>
</tr>
<tr>
Expand All @@ -310,7 +310,7 @@ <h2>Classes</h2>
<td>2</td>
<td>2</td>
<td>0</td>
<td>0.010s</td>
<td>0.003s</td>
<td class="failures">0%</td>
</tr>
</tbody>
Expand All @@ -324,7 +324,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 8.4</a> at 2025. 1. 10. 오전 10:03:42</p>
<a href="http://www.gradle.org">Gradle 8.4</a> at 2025. 1. 10. 오후 12:46:58</p>
</div>
</div>
</body>
Expand Down
85 changes: 0 additions & 85 deletions web3-credential-server/build/resources/main/application.properties

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
85 changes: 0 additions & 85 deletions web3-credential-server/src/main/resources/application.properties

This file was deleted.

84 changes: 84 additions & 0 deletions web3-credential-server/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
spring:
application:
name: spring-web3
profiles:
include: secret #application-secret.yaml ?? ???

jpa:
open-in-view: false #Lazy Loading ????

main:
allow-bean-definition-overriding: true

datasource:
url: jdbc:h2:mem:test;MODE=MYSQL;DB_CLOSE_DELAY=-1
driverClassName: org.h2.Driver
username: sa
password: password
h2:
console:
enabled: false
path: /h2-console
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
format_sql: true
show-sql: true
database-platform: org.hibernate.dialect.H2Dialect
sql:
init:
schema-locations: classpath:schema.sql
data-locations: classpath:data.sql
mode: always

servlet:
multipart:
enabled: true
max-file-size: 10MB
max-request-size: 10MB

jwt:
key: ''
access-token-validity: 3600000
refresh-token-validity: 86400000

mvc:
cors:
allowed-origin-patterns: http://localhost:8080
allow-credentials: true

kakao:
#kakao.client-id=
#kakao.redirect-uri=
token-url: https://kauth.kakao.com/oauth/token
user-info-url: https://kapi.kakao.com/v2/user/me
message-url: https://kapi.kakao.com/v2/api/talk/memo/default/send
code-url: https://kauth.kakao.com/oauth/authorize

cloud:
aws:
s3-bucket-name: ''
s3-bucket-url: ''
region-static: ap-northeast-2
credentials:
accessKey: ''
secretKey: ''
stack:
auto: false

passport:
client-secret: ''
public-key-str: ''

rsa:
public-key: ''

server:
http2:
enabled: false
port: 8080

sign:
sign-cert-dir: web3-credential-server/src/main/resources/signCertStorage/
sign-pri-dir: web3-credential-server/src/main/resources/signPriStorage/
Loading

0 comments on commit 255a946

Please sign in to comment.