diff --git a/.gitignore b/.gitignore index ce3029c..06ab520 100644 --- a/.gitignore +++ b/.gitignore @@ -18,8 +18,6 @@ bin/ !**/src/test/**/bin/ ### IntelliJ IDEA ### -application.properties -application-test.properties .idea *.iws *.iml @@ -37,3 +35,4 @@ out/ ### VS Code ### .vscode/ +/.env diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/src/main/java/com/project/Haru_Mail/domain/diary/Diary.java b/src/main/java/com/project/Haru_Mail/domain/diary/Diary.java index 6f3e25a..2178c04 100644 --- a/src/main/java/com/project/Haru_Mail/domain/diary/Diary.java +++ b/src/main/java/com/project/Haru_Mail/domain/diary/Diary.java @@ -19,7 +19,6 @@ public class Diary { @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; // 다이어리 ID - @Column(columnDefinition = "NVARCHAR(255)") private String title; // 제목 @Lob diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..abea1b1 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,44 @@ +spring.security.oauth2.client.registration.google.client-id=${GOOGLE_CLIENT_ID} +spring.security.oauth2.client.registration.google.client-secret=${GOOGLE_CLIENT_SECRET} +spring.security.oauth2.client.registration.google.redirect-uri=${GOOGLE_REDIRECT_URI} +spring.security.oauth2.client.registration.google.scope=email, profile + +spring.datasource.url=${SPRING_DATASOURCE_URL} +spring.datasource.username=${SPRING_DATASOURCE_USERNAME} +spring.datasource.password=${DB_PASSWORD} + +spring.jpa.hibernate.ddl-auto=update +spring.jpa.show-sql=true +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect +spring.jpa.properties.hibernate.connection.charSet=UTF-8 +spring.jpa.properties.hibernate.connection.useUnicode=true +spring.jpa.properties.hibernate.connection.characterEncoding=UTF-8 + +jwt.secret-key=${JWT_SECRET_KEY} +jwt.access-token-expiration-minutes=30 +jwt.refresh-token-expiration-minutes=1440 +jwt.header=Authorization +jwt.prefix=Bearer + +spring.redis.host = localhost +spring.redis.port = 6379 +spring.redis.password=${REDIS_PASSWORD} +spring.redis.timeout = 6000 + +spring.mail.host = smtp.gmail.com +spring.mail.port = 587 +spring.mail.username=${MAIL_USERNAME} +spring.mail.password=${MAIL_PASSWORD} +spring.mail.properties.mail.smtp.auth = true +spring.mail.properties.mail.smtp.starttls.enable = true +spring.mail.properties.mail.smtp.ssl.trust=smtp.gmail.com + +spring.thymeleaf.prefix=classpath:/templates/ +spring.thymeleaf.suffix=.html +spring.thymeleaf.mode=HTML +spring.thymeleaf.encoding=UTF-8 +spring.thymeleaf.cache=false + +cloudinary.cloud-name=dr6jccdxm +cloudinary.api-key=${CLOUDINARY_API_KEY} +cloudinary.api-secret=${CLOUDINARY_API_SECRET} \ No newline at end of file