Skip to content

Commit

Permalink
[Chore] yaml파일 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
gyulchyoung committed Sep 20, 2022
1 parent 53542c2 commit e7b699e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class SwaggerConfig {
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2).select()
.apis(RequestHandlerSelectors.basePackage("com.server.tourApiProject.v1"))
.paths(PathSelectors.any())
.apis(RequestHandlerSelectors.basePackage("com.server.tourApiProject"))
.paths(PathSelectors.ant("/v1/**"))
.build()
.useDefaultResponseMessages(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class RSAService {

private final String PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4veKCtvjMbdACgTDS0EXveDgVHSndOkJWj6Qt1Bq6g4z8SVFraQ0LADFeosvaaasZgVs2ny5cLmAG1HmiHvU4HJrcsPb4jxUEm+VUJCNHxb6G4BQ11sJlZn3hyphfWApaSzKodzoTz0qgR4XMkoZYqgyxP7wABuDPLQLTnr44PQIDAQAB";

@Value("${rsa.private-key}")
// @Value("${rsa.private-key}")
private String PRIVATE_KEY;

public String getPRIVATE_KEY(){
Expand Down
23 changes: 0 additions & 23 deletions src/main/resources/application.properties

This file was deleted.

23 changes: 19 additions & 4 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
spring:
profiles:
group:
"local": "localdb,common,localLog"
"prod": "proddb,common,prodLog"
"local": "localdb,common,localLog,security"
"prod": "proddb,common,prodLog,security"
---

spring: #prod DB??
Expand Down Expand Up @@ -51,7 +51,7 @@ server:
connection-timeout: 5000

---
spring:
spring: #local로깅
config:
activate:
on-profile: "localLog"
Expand All @@ -64,7 +64,7 @@ logging:
max-history: 7
total-size-cap: 10MB
---
spring:
spring: #prod로깅
config:
activate:
on-profile: "prodLog"
Expand All @@ -76,3 +76,18 @@ logging:
rollingpolicy:
max-history: 60
total-size-cap: 3GB

---
spring: #사용자보안
config:
activate:
on-profile: "security"
mail:
host: smtp.gmail.com
port: '587'
username: [email protected]
password: gphtiblybikncidz
properties.mail.smtp:
auth: true
starttls.enable: true

0 comments on commit e7b699e

Please sign in to comment.