Some checks failed
Build, Test, Deploy and Analysis / qodana (push) Failing after 12s
Build, Test, Deploy and Analysis / test-backend (push) Successful in 37s
Build, Test, Deploy and Analysis / build-and-push (push) Successful in 41s
Build, Test, Deploy and Analysis / deploy (push) Successful in 9s
54 lines
2.0 KiB
Properties
54 lines
2.0 KiB
Properties
spring.application.name=backend
|
|
server.port=8000
|
|
|
|
# Database Configuration
|
|
spring.datasource.url=${DB_URL:jdbc:postgresql://localhost:5432/printcalc}
|
|
spring.datasource.username=${DB_USERNAME:printcalc}
|
|
spring.datasource.password=${DB_PASSWORD:printcalc_secret}
|
|
spring.jpa.hibernate.ddl-auto=update
|
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
|
spring.jpa.open-in-view=false
|
|
|
|
|
|
# Slicer Configuration
|
|
# Map SLICER_PATH env var if present (default to /opt/orcaslicer/AppRun or Mac path)
|
|
slicer.path=${SLICER_PATH:/Applications/OrcaSlicer.app/Contents/MacOS/OrcaSlicer}
|
|
profiles.root=${PROFILES_DIR:profiles}
|
|
|
|
|
|
# File Upload Limits
|
|
spring.servlet.multipart.max-file-size=200MB
|
|
spring.servlet.multipart.max-request-size=200MB
|
|
|
|
# ClamAV Configuration
|
|
clamav.host=${CLAMAV_HOST:clamav}
|
|
clamav.port=${CLAMAV_PORT:3310}
|
|
clamav.enabled=${CLAMAV_ENABLED:false}
|
|
|
|
# TWINT Configuration
|
|
payment.twint.url=${TWINT_PAYMENT_URL:https://go.twint.ch/1/e/tw?tw=acq.gERQQytOTnyIMuQHUqn4hlxgciHE5X7nnqHnNSPAr2OF2K3uBlXJDr2n9JU3sgxa.}
|
|
|
|
# Mail Configuration
|
|
spring.mail.host=${MAIL_HOST:mail.infomaniak.com}
|
|
spring.mail.port=${MAIL_PORT:587}
|
|
spring.mail.username=${MAIL_USERNAME:info@3d-fab.ch}
|
|
spring.mail.password=${MAIL_PASSWORD:}
|
|
spring.mail.properties.mail.smtp.auth=${MAIL_SMTP_AUTH:false}
|
|
spring.mail.properties.mail.smtp.starttls.enable=${MAIL_SMTP_STARTTLS:false}
|
|
|
|
# Application Mail Settings
|
|
app.mail.enabled=${APP_MAIL_ENABLED:true}
|
|
app.mail.from=${APP_MAIL_FROM:${MAIL_USERNAME:noreply@printcalculator.local}}
|
|
app.mail.admin.enabled=${APP_MAIL_ADMIN_ENABLED:true}
|
|
app.mail.admin.address=${APP_MAIL_ADMIN_ADDRESS:admin@printcalculator.local}
|
|
app.frontend.base-url=${APP_FRONTEND_BASE_URL:http://localhost:4200}
|
|
|
|
# Admin back-office authentication
|
|
admin.password=${ADMIN_PASSWORD}
|
|
admin.session.secret=${ADMIN_SESSION_SECRET}
|
|
admin.session.ttl-minutes=${ADMIN_SESSION_TTL_MINUTES:480}
|
|
admin.auth.trust-proxy-headers=${ADMIN_AUTH_TRUST_PROXY_HEADERS:false}
|
|
|
|
# Expose only liveness endpoint by default.
|
|
management.endpoints.web.exposure.include=health
|