Skip to main content
Version: v0.1.0

Configuration Reference

Complete reference for all configuration options in Ciyex EHR.

Backend Configuration (application.yml)

The backend is configured using application.yml. Below are all available properties.

Server

PropertyDefaultDescription
server.port8080Port the application runs on
server.servlet.context-path/Context path for the application
server.compression.enabledtrueEnable GZIP compression

Database

PropertyDefaultDescription
spring.datasource.url-JDBC URL for the database
spring.datasource.username-Database username
spring.datasource.password-Database password
spring.datasource.hikari.maximum-pool-size10Max connections in pool
spring.jpa.hibernate.ddl-autovalidateHibernate DDL mode

Security

PropertyDefaultDescription
jwt.secret-Secret key for signing JWTs
jwt.expiration3600Access token expiration in seconds
jwt.refresh-expiration86400Refresh token expiration in seconds
cors.allowed-origins*Allowed CORS origins

Integrations

AWS S3

PropertyDefaultDescription
aws.s3.bucket-S3 bucket name
aws.regionus-east-1AWS region
aws.access-key-AWS access key ID
aws.secret-key-AWS secret access key

Stripe

PropertyDefaultDescription
stripe.api-key-Stripe secret key
stripe.publishable-key-Stripe publishable key
stripe.webhook-secret-Stripe webhook signing secret

Email

PropertyDefaultDescription
spring.mail.host-SMTP server host
spring.mail.port587SMTP server port
spring.mail.username-SMTP username
spring.mail.password-SMTP password

Telehealth

PropertyDefaultDescription
jitsi.domainmeet.jit.siJitsi Meet domain
jitsi.app-id-Jitsi App ID (PaaS)
jitsi.secret-Jitsi App Secret (PaaS)

Frontend Configuration (.env)

The frontend is configured using environment variables.

Build & Runtime

VariableDescription
NEXT_PUBLIC_API_URLBase URL for the backend API
NODE_ENVEnvironment (development, production)

Features

VariableDescription
NEXT_PUBLIC_ENABLE_TELEHEALTHEnable/disable telehealth features
NEXT_PUBLIC_ENABLE_BILLINGEnable/disable billing features

Third-Party Keys

VariableDescription
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYStripe publishable key for UI
NEXT_PUBLIC_GA_IDGoogle Analytics ID
NEXT_PUBLIC_SENTRY_DSNSentry DSN for error tracking

Feature Flags

Features can be toggled via database configuration or environment variables.

features:
telehealth:
enabled: true
billing:
enabled: true
waitlist:
enabled: false

Logging Configuration

Logging levels can be configured per package.

logging:
level:
root: INFO
com.qiaben.ciyex: DEBUG
org.springframework.web: WARN
org.hibernate.SQL: DEBUG

Profiles

Spring profiles allow for environment-specific configuration.

  • dev: Local development (H2 database, mock services)
  • staging: Staging environment (PostgreSQL, external services)
  • prod: Production environment (Optimized settings)

Activate a profile:

java -jar -Dspring.profiles.active=prod app.jar