Skip to content

Commit

Permalink
feat(application-local.yml): application-local.yml 세팅 (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonyworld authored Sep 12, 2024
1 parent 85a2a59 commit 6f07be2
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions main/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
server:
port: 4000

spring:
config:
activate:
on-profile: local
import: application-secret.properties
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${LOCAL_DB_HOST}:${LOCAL_DB_PORT}/${LOCAL_DB_NAME}?currentSchema=${LOCAL_DB_SCHEMA}
username: ${LOCAL_DB_USERNAME}
password: ${LOCAL_DB_PASSWORD}
jpa:
open-in-view: false
hibernate:
naming:
physical-strategy: org.sopt.makers.crew.main.common.config.CamelCaseNamingStrategy
ddl-auto: update
properties:
hibernate:
show_sql: true
format_sql: true
dialect: org.hibernate.dialect.PostgreSQLDialect
storage_engine: innodb

jwt:
header: Authorization
secret: ${LOCAL_JWT_SECRET}
access-token:
expire-length: ${ACCESS_TOKEN_EXPIRED_TIME}

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}
file-min-size: ${AWS_FILE_MIN_SIZE}
file-max-size: ${AWS_FILE_MAX_SIZE}
algorithm: ${AWS_ALGORITHM}
content-type: ${AWS_CONTENT_TYPE}
request-type: ${AWS_REQUEST_TYPE}
object-url: ${AWS_OBJECT_URL}

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

push-notification:
web-url: ${LOCAL_WEB_PAGE_URL}
x-api-key: ${LOCAL_PUSH_API_KEY}
service: ${PUSH_NOTIFICATION_SERVICE}
push-server-url: ${LOCAL_PUSH_SERVER_URL}

notice:
secret-key : ${NOTICE_SECRET_KEY}

playground:
server:
url: ${LOCAL_PLAYGROUND_URL}
endpoint: ${PLAYGROUND_ENDPOINT}

management:
server:
port: ${ACTUATOR_PORT}
endpoints:
enabled-by-default: false
jmx:
exposure:
exclude: "*"
web:
exposure:
include: info, health, prometheus
base-path: ${ACTUATOR_PATH}
endpoint:
health:
enabled: true
info:
enabled: true
prometheus:
enabled: true
prometheus:
metrics:
export:
enabled: true

0 comments on commit 6f07be2

Please sign in to comment.