Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions infrastructure/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ postgres:
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}

db:
ddl-auto: ${DB_DDL_AUTO}

reuqest-timeout: ${REQUEST_TIMEOUT}

storage:
max-file-size: ${MAX_FILE_SIZE}
max-request-size: ${MAX_REQUEST_SIZE}
file-system:
location: ${STORAGE_LOCATION}
13 changes: 12 additions & 1 deletion infrastructure/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ server:
keycloak:
realm: callv2
host: http://localhost:8090
client:
user-api:
client-id: user-api
client-secret: local-client-secret

postgres:
host: localhost
Expand All @@ -12,6 +16,13 @@ postgres:
username: postgres
password: postgres

db:
ddl-auto: none

reuqest-timeout: 600000

storage:
max-file-size: 1024MB
max-request-size: 1024MB
file-system:
location: /home/jhonatapers/callv2/storage
location: /
28 changes: 28 additions & 0 deletions infrastructure/src/main/resources/application-prd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
server:
port: ${SERVER_PORT}

keycloak:
realm: ${KEYCLOAK_REALM}
host: ${KEYCLOAK_HOST}
client:
user-api:
client-id: ${KEYCLOAK_CLIENT_ID}
client-secret: ${KEYCLOAK_CLIENT_SECRET}

postgres:
host: ${POSTGRES_HOST}
port: ${POSTGRES_PORT}
database: ${POSTGRES_DATABASE}
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}

db:
ddl-auto: none

reuqest-timeout: ${REQUEST_TIMEOUT}

storage:
max-file-size: ${MAX_FILE_SIZE}
max-request-size: ${MAX_REQUEST_SIZE}
file-system:
location: ${STORAGE_LOCATION}
10 changes: 6 additions & 4 deletions infrastructure/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ server:
min-response-size: 1024

spring:
profiles:
active: ${SPRING_PROFILES_ACTIVE:prd}
mvc:
async:
request-timeout: 600000
request-timeout: ${reuqest-timeout:30000}
servlet:
multipart:
enabled: true
max-file-size: 10240MB
max-request-size: 10240MB
max-file-size: ${storage.max-file-size:10240MB}
max-request-size: ${storage.max-request-size:10240MB}
security:
oauth2:
resourceserver:
Expand All @@ -29,5 +31,5 @@ spring:
url: jdbc:postgresql://${postgres.host}:${postgres.port}/${postgres.database}
jpa:
hibernate:
ddl-auto: none
ddl-auto: ${db.ddl-auto}
show-sql: true