Skip to content

Commit

Permalink
chore(config): add configuration for prod profile
Browse files Browse the repository at this point in the history
  • Loading branch information
yacosta738 committed Oct 3, 2024
1 parent 7691e14 commit 2663961
Showing 1 changed file with 112 additions and 0 deletions.
112 changes: 112 additions & 0 deletions apps/backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
server:
port: 8443
ssl:
bundle: "web-server"
enabled: true
ciphers: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 ,TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 ,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA256,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_RSA_WITH_CAMELLIA_256_CBC_SHA,TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA,TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
logging:
level:
org.springframework.r2dbc: WARN
org.springframework.security: WARN
org.springframework.security.oauth2.client: WARN
com.lyra: WARN
pattern:
console: "%d{dd-MM-yyyy HH:mm:ss} %magenta([%thread]) %highlight(%-5level) %logger.%M - %msg%n"
spring:
liquibase:
change-log: classpath:db/changelog/master.xml
enabled: true
application:
name: ${application.name}
main:
allow-bean-definition-overriding: true
ssl:
bundle:
pem:
keycloak:
reload-on-update: true
truststore:
certificate: ${SSL_CERTIFICATE}
jks:
web-server:
key:
alias: "server"
password: ${SSL_KEYSTORE_PASSWORD}
keystore:
location: ${SSL_KEYSTORE_LOCATION}
password: ${SSL_KEYSTORE_PASSWORD}
security:
oauth2:
client:
registration:
oidc:
client-secret: ${application.security.oauth2.client-secret}
client-id: ${application.security.oauth2.client-id}
scope: openid,profile,email
provider:
oidc:
issuer-uri: ${application.security.oauth2.issuer-uri}
resourceserver:
jwt:
audiences: ${application.security.oauth2.audience}
jwk-set-uri: ${application.security.oauth2.issuer-uri}/protocol/openid-connect/certs
r2dbc:
url: ${DATABASE_URL}
username: ${DATABASE_USERNAME}
password: ${DATABASE_PASSWORD}
pool:
enabled: true
initial-size: 10
max-size: 20
jpa:
show-sql: true
hibernate.ddl-auto: none
application:
name: lyra
description: Lyra is the future of newsletter creation and social media management. It's an app that uses AI to help you create newsletters and manage social media.
version: 0.0.1-SNAPSHOT
security:
oauth2:
base-url: ${OAUTH2_SERVER_URL:https://localhost:6443}
server-url: ${application.security.oauth2.base-url}
issuer-uri: ${application.security.oauth2.base-url}/realms/${application.security.oauth2.realm}
realm: ${REALM}
client-id: ${CLIENT_ID}
client-secret: ${CLIENT_SECRET}
admin-client-id: ${ADMIN_CLIENT_ID}
admin-realm: ${ADMIN_REALM}
admin-username: ${ADMIN_USERNAME}
admin-password: ${ADMIN_PASSWORD}
audience:
- account
- api://default
cors:
allowed-origins: ${CORS_ALLOWED_ORIGINS}
allowed-methods: ${CORS_ALLOWED_METHODS:GET,POST,PUT,DELETE,OPTIONS}
allowed-headers: ${CORS_ALLOWED_HEADERS:Authorization,Content-Type,Accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers, X-Requested-With, X-Xsrf-Token, X-New-Header}
exposed-headers: ${CORS_EXPOSED_HEADERS:Access-Control-Allow-Origin,Access-Control-Allow-Credentials}
allow-credentials: ${CORS_ALLOW_CREDENTIALS:true}
max-age: ${CORS_MAX_AGE:3600}
domain: ${HOSTNAME}

management:
endpoints:
web:
exposure:
include: info, health, beans, openapi, swagger-ui
notification:
email:
sendgrid-api-key: ${SENDGRID_API_KEY}
springdoc:
show-actuator: true
api-docs:
enabled: true
swagger-ui:
enabled: true
path: /api-docs
csrf:
enabled: true
oauth:
app-name: ${application.name}
client-id: ${application.security.oauth2.client-id}
client-secret: ${application.security.oauth2.client-secret}

0 comments on commit 2663961

Please sign in to comment.