diff --git a/layer-batch/src/main/resources/application-dev.yml b/layer-batch/src/main/resources/application-dev.yml new file mode 100644 index 00000000..5c13689d --- /dev/null +++ b/layer-batch/src/main/resources/application-dev.yml @@ -0,0 +1,71 @@ +server: + port: 8085 + +spring: + config: + import: application-secret.properties + datasource: + url: ${AWS_DEV_DB_URL} + username: ${AWS_DEV_DB_NAME} + password: ${AWS_DEV_DB_PASSWORD} + driver-class-name: com.mysql.cj.jdbc.Driver + hikari: + maximum-pool-size: 5 # 최대 pool 크기 + minimum-idle: 5 # 최소 pool 크기 + jpa: + hibernate: + ddl-auto: validate + properties: + hibernate: + format_sql: true + show_sql: true + open-in-view: false + database: mysql + +apple: + login: + issuer: ${DEV_APPLE_ISSUER} + client_id: ${DEV_APPLE_CLIENT_ID} + audience: ${DEV_APPLE_AUD} + +kakao: + login: + api_key: ${DEV_KAKAO_API_KEY} + redirect_uri: ${DEV_KAKAO_REDIRECT_URI} + uri: + base: https://kauth.kakao.com + code: /oauth/authorize + token: /oauth/token + api: + uri: + base: https://kapi.kakao.com + user: /v2/user/me + +google: + login: + client_id: ${DEV_GOOGLE_CLIENT_ID} + code_uri: ${DEV_GOOGLE_CODE_URI} + token_uri: ${DEV_GOOGLE_TOKEN_URI} + client_secret: ${DEV_GOOGLE_CLIENT_SECRET} + redirect_uri: ${DEV_GOOGLE_REDIRECT_URI} + code_redirect_uri: http://localhost:8080/api/auth/oauth2/google/code + +ncp: + storage: + region: ${STORAGE_REGION} + bucketName: ${STORAGE_NAME} + endpoint: ${STORAGE_ENDPOINT} + accessKey: ${STORAGE_ACCESS_KEY} + secretKey: ${STORAGE_SECRET_KEY} + +openai: + systemContent: ${OPENAI_SYSTEM_CONTENT} + apiKey: ${OPENAI_API_KEY} + model: ${OPENAI_MODEL} + maxTokens: ${OPENAI_MAX_TOKENS} + +discord: + webhook: + retrospect-url: ${DISCORD_RETROSPECT_URL} + space-url: ${DISCORD_SPACE_URL} + member-url: ${DISCORD_MEMBER_URL} \ No newline at end of file diff --git a/layer-batch/src/main/resources/application.yml b/layer-batch/src/main/resources/application-prod.yml similarity index 92% rename from layer-batch/src/main/resources/application.yml rename to layer-batch/src/main/resources/application-prod.yml index d009e947..365a340b 100644 --- a/layer-batch/src/main/resources/application.yml +++ b/layer-batch/src/main/resources/application-prod.yml @@ -49,10 +49,6 @@ google: client_secret: ${DEV_GOOGLE_CLIENT_SECRET} redirect_uri: ${DEV_GOOGLE_REDIRECT_URI} code_redirect_uri: http://localhost:8080/api/auth/oauth2/google/code - sheet: - id: ${GOOGLE_SHEET_ID} - token_path: ${PROD_GOOGLE_TOKEN_PATH} - credential_path: ${PROD_GOOGLE_CREDENTIAL_PATH} ncp: storage: