Skip to content

Commit 330caa1

Browse files
committed
Config: test 애플리케이션 환경 설정 추가
1 parent ee8f871 commit 330caa1

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/main/resources/auth.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jwt:
1010

1111
password:
1212
policy:
13-
length: 12
14-
characters: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+"
13+
length: ${INITIAL_PASSWORD_LENGTH:12}
14+
characters: ${INITIAL_PASSWORD_CHARACTERS:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+}
1515

1616
---
1717
spring.config.activate.on-profile: local

src/test/resources/application.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,20 @@ spring:
1616

1717
swagger:
1818
server:
19-
url: http://localhost:8080
19+
url: http://localhost:8080
20+
21+
22+
jwt:
23+
secret-key:
24+
access-token: exampleSecretKeyForTFSystemAccessSecretKeyTestForPadding
25+
temporary-token: exampleSecretKeyForTFSystemTemporarySecretKeyTestForPadding
26+
refresh-token: exampleSecretKeyTFSystemRefreshSecretKeyTestForPadding
27+
expiration-time:
28+
access-token: 43200000 # 1000 * 60 * 60 * 12 = 43200000 (12 hours)
29+
temporary-token: 300000
30+
refresh-token: 1209600000 # 1000 * 60 * 60 * 24 * 14 = 1209600000 (14 days)
31+
32+
password:
33+
policy:
34+
length: 12
35+
characters: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+"

0 commit comments

Comments
 (0)