application.yml
919 bytes
| 1 | spring: |
|---|---|
| 2 | application: |
| 3 | name: tasteprint |
| 4 | datasource: |
| 5 | url: ${DB_URL:jdbc:h2:file:./data/tasteprint;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DEFAULT_NULL_ORDERING=HIGH} |
| 6 | username: ${DB_USER:sa} |
| 7 | password: ${DB_PASSWORD:} |
| 8 | flyway: |
| 9 | enabled: true |
| 10 | jpa: |
| 11 | hibernate: |
| 12 | ddl-auto: validate |
| 13 | open-in-view: false |
| 14 | properties: |
| 15 | hibernate: |
| 16 | jdbc: |
| 17 | time_zone: UTC |
| 18 | servlet: |
| 19 | multipart: |
| 20 | max-file-size: 6MB |
| 21 | max-request-size: 6MB |
| 22 | |
| 23 | server: |
| 24 | port: ${PORT:8080} |
| 25 | forward-headers-strategy: framework |
| 26 | |
| 27 | management: |
| 28 | endpoints: |
| 29 | web: |
| 30 | exposure: |
| 31 | include: health,info |
| 32 | endpoint: |
| 33 | health: |
| 34 | probes: |
| 35 | enabled: true |
| 36 | |
| 37 | springdoc: |
| 38 | swagger-ui: |
| 39 | path: /docs |
| 40 | |
| 41 | app: |
| 42 | allowed-origins: ${APP_ALLOWED_ORIGINS:http://localhost:5173,http://localhost:3000} |
| 43 | media-directory: ${MEDIA_DIRECTORY:./uploads} |
| 44 | demo-data-enabled: ${DEMO_DATA_ENABLED:true} |
| 45 | |