diff --git a/main/src/main/resources/application-prod.yml b/main/src/main/resources/application-prod.yml new file mode 100644 index 00000000..38dec644 --- /dev/null +++ b/main/src/main/resources/application-prod.yml @@ -0,0 +1,48 @@ +server: + port: 4000 + +spring: + config: + activate: + on-profile: prod + import: application-secret.properties + datasource: + driver-class-name: org.postgresql.Driver + url: jdbc:postgresql://${PROD_DB_HOST}:${PROD_DB_PORT}/${PROD_DB_NAME}?currentSchema=${PROD_DB_SCHEMA} + username: ${PROD_DB_USERNAME} + password: ${PROD_DB_PASSWORD} + jpa: + hibernate: + naming: + physical-strategy: org.sopt.makers.crew.main.common.config.CamelCaseNamingStrategy + ddl-auto: validate + properties: + hibernate: + show_sql: true + format_sql: ture + dialect: org.hibernate.dialect.PostgreSQLDialect + storage_engine: innodb + +jwt: + header: Authorization + secret: ${PROD_JWT_SECRET} + access-token: + expire-length: ${ACCESS_TOKEN_EXPIRED_TIME} # 10분 + +aws-property: + aws-region: ${AWS_REGION} + s3-bucket-name: ${AWS_S3_BUCKET_NAME} + access-key: ${AWS_ACCESS_KEY_ID} + secret-key: ${AWS_SECRET_ACCESS_KEY} + +springdoc: + packages-to-scan: org.sopt.makers.crew + default-consumes-media-type: application/json;charset=UTF-8 + default-produces-media-type: application/json;charset=UTF-8 + swagger-ui: + tags-sorter: alpha + operations-sorter: alpha + api-docs: + path: /api-docs/json + groups: + enabled: true