From 018e6cbfb86306b28b1c1ef7dc52d65f83d93d2e Mon Sep 17 00:00:00 2001 From: kokodak Date: Fri, 20 Oct 2023 02:35:50 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=84=9C=EB=B8=8C=EB=AA=A8=EB=93=88?= =?UTF-8?q?=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/security | 1 - .../resources/security/application-dev.yml | 52 +++++++++++++++++++ .../resources/security/application-local.yml | 48 +++++++++++++++++ .../resources/security/application-prod.yml | 44 ++++++++++++++++ .../resources/security/application-test.yml | 42 +++++++++++++++ 5 files changed, 186 insertions(+), 1 deletion(-) delete mode 160000 backend/src/main/resources/security create mode 100644 backend/src/main/resources/security/application-dev.yml create mode 100644 backend/src/main/resources/security/application-local.yml create mode 100644 backend/src/main/resources/security/application-prod.yml create mode 100644 backend/src/main/resources/security/application-test.yml diff --git a/backend/src/main/resources/security b/backend/src/main/resources/security deleted file mode 160000 index a262f1344..000000000 --- a/backend/src/main/resources/security +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a262f1344e60f0f982a84684ff7de180494237cf diff --git a/backend/src/main/resources/security/application-dev.yml b/backend/src/main/resources/security/application-dev.yml new file mode 100644 index 000000000..80590167d --- /dev/null +++ b/backend/src/main/resources/security/application-dev.yml @@ -0,0 +1,52 @@ +server: + servlet: + encoding: + charset: UTF-8 + tomcat: + threads: + max: 250 + +spring: + datasource: + url: jdbc:mysql://localhost:3306/naaga_dev?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true + username: naaga + password: naaga1234 + driver-class-name: com.mysql.cj.jdbc.Driver + jpa: + properties: + hibernate: + format_sql: false + default_batch_fetch_size: 1000 + show-sql: false + hibernate: + ddl-auto: none + hibernate: + dialect: org.hibernate.dialect.MySQL57Dialect + defer-datasource-initialization: false + +multipartFile: + directory: + path: /home/ubuntu/app/data/image + +image: + path: + directory: + prefix: /home/ubuntu/app/data/image + url: + prefix: https://www.naaga.shop/images + +jwt: + secret-key: 7LGE7LGE66Oo7Lm07J2066CI7L2U7L2U64ul672A65iQ67mF7Iqk7YGs66Gx7LGE7LGE66Oo7Lm07J2066CI7L2U7L2U64ul672A65iQ67mF7Iqk7YGs66Gx + +oauth: + kakao: + admin-key: 33d4f9e2b16b6ccc26703983421e9c7a + url: + auth: https://kauth.kakao.com + api: https://kapi.kakao.com + +manager: + id: 2023-naaga + password: naaga + origin-url: https://naaga.shop + \ No newline at end of file diff --git a/backend/src/main/resources/security/application-local.yml b/backend/src/main/resources/security/application-local.yml new file mode 100644 index 000000000..6029ef9e7 --- /dev/null +++ b/backend/src/main/resources/security/application-local.yml @@ -0,0 +1,48 @@ +server: + servlet: + encoding: + charset: UTF-8 +spring: + datasource: + username: sa + url: jdbc:h2:mem:testdb;MODE=MySQL;DB_CLOSE_ON_EXIT=FALSE + jpa: + properties: + hibernate: + dialect: org.hibernate.dialect.MySQL57Dialect + format_sql: 'true' + defer-datasource-initialization: 'true' + show-sql: 'true' + hibernate: + ddl-auto: create-drop +logging: + level: + root: DEBUG + org: + hibernate: + type: + descriptor: + sql: + BasicBinder: TRACE + +image: + path: + directory: + prefix: /Users/hwan/naaga/2023-naaga/backend/src/main/resources/static + url: + prefix: http://localhost:8080 + +jwt: + secret-key: 7LGE7LGE66Oo7Lm07J2066CI7L2U7L2U64ul672A65iQ67mF7Iqk7YGs66Gx7LGE7LGE66Oo7Lm07J2066CI7L2U7L2U64ul672A65iQ67mF7Iqk7YGs66Gx + +oauth: + kakao: + admin-key: 33d4f9e2b16b6ccc26703983421e9c7a + url: + auth: https://kauth.kakao.com + api: https://kapi.kakao.com + +manager: + id: 2023-naaga + password: naaga + origin-url: https://naaga.shop diff --git a/backend/src/main/resources/security/application-prod.yml b/backend/src/main/resources/security/application-prod.yml new file mode 100644 index 000000000..b293d612e --- /dev/null +++ b/backend/src/main/resources/security/application-prod.yml @@ -0,0 +1,44 @@ +server: + servlet: + encoding: + charset: UTF-8 + +spring: + datasource: + url: jdbc:mysql://192.168.2.112:3306/naaga?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true + username: naaga_prod + password: naaga1234 + driver-class-name: com.mysql.cj.jdbc.Driver + jpa: + properties: + hibernate: + format_sql: true + show-sql: true + hibernate: + ddl-auto: none + hibernate: + dialect: org.hibernate.dialect.MySQL57Dialect + defer-datasource-initialization: false + +image: + path: + directory: + prefix: /home/ubuntu/naaga/data/images + url: + prefix: http://naaga.world/images + +jwt: + secret-key: 7LGE7LGE66Oo7Lm07J2066CI7L2U7L2U64ul672A65iQ67mF7Iqk7YGs66Gx7LGE7LGE66Oo7Lm07J2066CI7L2U7L2U64ul672A65iQ67mF7Iqk7YGs66Gx + +oauth: + kakao: + admin-key: 33d4f9e2b16b6ccc26703983421e9c7a + url: + auth: https://kauth.kakao.com + api: https://kapi.kakao.com + +manager: + id: 2023-naaga + password: naaga + origin-url: https://naaga.shop + \ No newline at end of file diff --git a/backend/src/main/resources/security/application-test.yml b/backend/src/main/resources/security/application-test.yml new file mode 100644 index 000000000..26615753d --- /dev/null +++ b/backend/src/main/resources/security/application-test.yml @@ -0,0 +1,42 @@ +spring: + # for test + h2: + console: + enabled: true + datasource: + # for test + url: jdbc:h2:mem:testdb;MODE=MySQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE; + username: sa + password: + + jpa: + hibernate: + ddl-auto: create-drop # for test + properties: + hibernate: + dialect: org.hibernate.dialect.MySQL57Dialect + format_sql: true # for test + show-sql: true # for test + +image: + path: + directory: + prefix: /Users/hwan/naaga/2023-naaga/backend/src/main/resources/static + url: + prefix: http://localhost:8080 + +jwt: + secret-key: 7LGE7LGE66Oo7Lm07J2066CI7L2U7L2U64ul672A65iQ67mF7Iqk7YGs66Gx7LGE7LGE66Oo7Lm07J2066CI7L2U7L2U64ul672A65iQ67mF7Iqk7YGs66Gx + +oauth: + kakao: + admin-key: 33d4f9e2b16b6ccc26703983421e9c7a + url: + auth: https://kauth.kakao.com + api: https://kapi.kakao.com + +manager: + id: 2023-naaga + password: naaga + origin-url: https://naaga.shop + \ No newline at end of file