this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Document all backend environment variables in .env.example (#3425)

* Initial plan

* Document all backend environment variables in .env.example

Co-authored-by: bodhish <14979190+bodhish@users.noreply.github.com>

* cleanup unused variables

* remove hcx from default prebuilt env

* remove config variable causing duplicate name identifiers

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bodhish <14979190+bodhish@users.noreply.github.com>
Co-authored-by: Aakash Singh <mail@singhaakash.dev>

authored by

Copilot
bodhish
copilot-swe-agent[bot]
Aakash Singh
and committed by
GitHub
61717cd6 1ab8e3a0

+509 -53
+506 -3
.env.example
··· 1 + # ============================================================================ 2 + # CARE Backend Environment Variables 3 + # ============================================================================ 4 + # This file documents all supported environment variables in the Care backend. 5 + # Copy this file to .env and modify values as needed for your environment. 6 + 7 + # ============================================================================ 8 + # GENERAL / UTILITIES 9 + # ============================================================================ 10 + 11 + # Path to the manage.py file (used by scripts) 1 12 MANAGE_PY_PATH=manage.py 2 13 14 + # Directory for database backups 15 + BACKUP_DIR="./care-backups" 16 + 17 + # Number of days to retain database backups 18 + DB_BACKUP_RETENTION_PERIOD=7 19 + 20 + # Read environment variables from .env file (boolean: True/False) 21 + # Default: False 22 + # DJANGO_READ_DOT_ENV_FILE=False 23 + 24 + # Application version identifier (string) 25 + # Default: "unknown" 26 + # APP_VERSION=unknown 27 + 28 + # ============================================================================ 29 + # DATABASE CONFIGURATION 30 + # ============================================================================ 31 + 32 + # PostgreSQL database connection settings 3 33 POSTGRES_USER=postgres 4 34 POSTGRES_PASSWORD=postgres 5 35 POSTGRES_HOST=db 6 36 POSTGRES_DB=care 7 37 POSTGRES_PORT=5432 38 + 39 + # Full database URL (takes precedence over individual POSTGRES_* variables) 40 + # Format: postgres://username:password@host:port/database 8 41 DATABASE_URL=postgres://postgres:postgres@localhost:5433/care 9 - BACKUP_DIR="./care-backups" 10 - DB_BACKUP_RETENTION_PERIOD=7 42 + 43 + # Maximum age of database connections in seconds (integer) 44 + # Default: 0 (disabled) in base, 60 in deployment 45 + # CONN_MAX_AGE=0 46 + 47 + # ============================================================================ 48 + # REDIS CONFIGURATION 49 + # ============================================================================ 50 + 51 + # Redis URL for caching 52 + # Default: redis://localhost:6379 11 53 REDIS_URL=redis://localhost:6380 12 - CELERY_BROKER_URL=redis://localhost:6380/0 54 + 55 + # Celery broker URL (usually Redis) (string, optional) 56 + # Default: Same as REDIS_URL 57 + # CELERY_BROKER_URL=redis://localhost:6380/0 58 + 59 + # Timeout for setnx lock operations in seconds (integer) 60 + # Default: 32 61 + # LOCK_TIMEOUT=32 62 + 63 + # ============================================================================ 64 + # DJANGO CORE SETTINGS 65 + # ============================================================================ 66 + 67 + # Django secret key for cryptographic signing (string) 68 + # IMPORTANT: Change this in production! 69 + # Default: A default key (DO NOT USE IN PRODUCTION) 70 + # DJANGO_SECRET_KEY=eXZQzOzx8gV38rDG0Z0fFZWweUGl3LwMZ9aTKqJiXQTI0nKMh0Z7sbHfqT8KFEnd 13 71 72 + # Enable Django debug mode (boolean: True/False) 73 + # Default: False 14 74 DJANGO_DEBUG=False 15 75 76 + # Allowed hosts for the application (JSON array) 77 + # Default: ["*"] 78 + # DJANGO_ALLOWED_HOSTS=["*"] 79 + 80 + # Django admin URL path (string) 81 + # Default: "admin" 82 + # DJANGO_ADMIN_URL=admin 83 + 84 + # CSRF trusted origins (JSON array) 85 + # Default: [] 86 + # CSRF_TRUSTED_ORIGINS=[] 87 + 88 + # CORS allowed origins (JSON array) 89 + # Default: [] 90 + # CORS_ALLOWED_ORIGINS=[] 91 + 92 + # CORS allowed origin regexes (JSON array) 93 + # Default: [] 94 + # CORS_ALLOWED_ORIGIN_REGEXES=[] 95 + 96 + # ============================================================================ 97 + # SECURITY SETTINGS 98 + # ============================================================================ 99 + 100 + # Enable secure SSL redirect (boolean: True/False) 101 + # Default: True in deployment 102 + # DJANGO_SECURE_SSL_REDIRECT=True 103 + 104 + # Include subdomains in HSTS policy (boolean: True/False) 105 + # Default: True in deployment 106 + # DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True 107 + 108 + # Enable HSTS preload (boolean: True/False) 109 + # Default: True in deployment 110 + # DJANGO_SECURE_HSTS_PRELOAD=True 111 + 112 + # Enable content type nosniff header (boolean: True/False) 113 + # Default: True in deployment 114 + # DJANGO_SECURE_CONTENT_TYPE_NOSNIFF=True 115 + 116 + # ============================================================================ 117 + # EMAIL CONFIGURATION 118 + # ============================================================================ 119 + 120 + # Email backend to use (string) 121 + # Default: django.core.mail.backends.smtp.EmailBackend 122 + # DJANGO_EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend 123 + 124 + # Default "from" email address (string) 125 + # Default: "Open Healthcare Network <ops@care.ohc.network>" 126 + # EMAIL_FROM="Open Healthcare Network <ops@care.ohc.network>" 127 + 128 + # Email server hostname (string) 129 + # Default: localhost 130 + # EMAIL_HOST=localhost 131 + 132 + # Email server port (integer) 133 + # Default: 587 134 + # EMAIL_PORT=587 135 + 136 + # Email server username (string) 137 + # Default: "" 138 + # EMAIL_USER= 139 + 140 + # Email server password (string) 141 + # Default: "" 142 + # EMAIL_PASSWORD= 143 + 144 + # Use TLS for email (boolean: True/False) 145 + # Default: False (True in deployment) 146 + # EMAIL_USE_TLS=False 147 + 148 + # Email subject prefix (string) 149 + # Default: "[Care]" 150 + # DJANGO_EMAIL_SUBJECT_PREFIX=[Care] 151 + 152 + # ============================================================================ 153 + # S3 / OBJECT STORAGE CONFIGURATION 154 + # ============================================================================ 155 + 156 + # Cloud storage provider (string: AWS, GCP, AZURE, etc.) 157 + # Default: "aws" 158 + # BUCKET_PROVIDER=aws 159 + 160 + # Primary bucket configuration 16 161 BUCKET_REGION=ap-south-1 17 162 BUCKET_KEY=key 18 163 BUCKET_SECRET=secret 19 164 BUCKET_ENDPOINT=http://localhost:4566 20 165 BUCKET_EXTERNAL_ENDPOINT=http://localhost:4566 166 + 167 + # Enable fine-grained ACL control on buckets (boolean: True/False) 168 + # Default: False 169 + # BUCKET_HAS_FINE_ACL=False 170 + 171 + # File upload bucket configuration 21 172 FILE_UPLOAD_BUCKET=patient-bucket 173 + 174 + # File upload bucket region (string) 175 + # Default: Same as BUCKET_REGION 176 + # FILE_UPLOAD_REGION=ap-south-1 177 + 178 + # File upload bucket access key (string) 179 + # Default: Same as BUCKET_KEY 180 + # FILE_UPLOAD_KEY=key 181 + 182 + # File upload bucket secret key (string) 183 + # Default: Same as BUCKET_SECRET 184 + # FILE_UPLOAD_SECRET=secret 185 + 186 + # File upload bucket endpoint (string) 187 + # Default: Same as BUCKET_ENDPOINT 188 + # FILE_UPLOAD_BUCKET_ENDPOINT=http://localhost:4566 189 + 190 + # File upload bucket external endpoint (string) 191 + # Default: BUCKET_EXTERNAL_ENDPOINT if BUCKET_ENDPOINT is set, else FILE_UPLOAD_BUCKET_ENDPOINT 192 + # FILE_UPLOAD_BUCKET_EXTERNAL_ENDPOINT=http://localhost:4566 193 + 194 + # Facility bucket configuration 22 195 FACILITY_S3_BUCKET=facility-bucket 196 + 197 + # Facility S3 region (string) 198 + # Default: Same as BUCKET_REGION 199 + # FACILITY_S3_REGION_CODE=ap-south-1 200 + 201 + # Facility S3 access key (string) 202 + # Default: Same as BUCKET_KEY 203 + # FACILITY_S3_KEY=key 204 + 205 + # Facility S3 secret key (string) 206 + # Default: Same as BUCKET_SECRET 207 + # FACILITY_S3_SECRET=secret 208 + 209 + # Facility S3 bucket endpoint (string) 210 + # Default: Same as BUCKET_ENDPOINT 211 + # FACILITY_S3_BUCKET_ENDPOINT=http://localhost:4566 212 + 213 + # Facility S3 bucket external endpoint (string) 214 + # Default: BUCKET_EXTERNAL_ENDPOINT if BUCKET_ENDPOINT is set, else FACILITY_S3_BUCKET_ENDPOINT 215 + # FACILITY_S3_BUCKET_EXTERNAL_ENDPOINT=http://localhost:4566 216 + 217 + # Facility CDN URL (string, optional) 218 + # Default: None 219 + # FACILITY_CDN= 220 + 221 + # ============================================================================ 222 + # FILE UPLOAD SETTINGS 223 + # ============================================================================ 224 + 225 + # Maximum file upload size in MB (integer) 226 + # Default: 5 227 + # MAX_FILE_UPLOAD_SIZE=5 228 + 229 + # Allowed MIME types for file uploads (comma-separated list) 230 + # Default: Comprehensive list of image, video, audio, and document types 231 + # ALLOWED_MIME_TYPES=image/jpeg,image/png,image/gif,video/mp4,audio/mpeg,application/pdf,... 232 + 233 + # Allowed file extensions for uploads (comma-separated list) 234 + # Default: Comprehensive list of safe extensions 235 + # ALLOWED_FILE_EXTENSIONS=jpg,jpeg,png,gif,mp4,mp3,pdf,doc,xls,... 236 + 237 + # Blocked file extensions (comma-separated list) 238 + # Default: exe,dll,bat,cmd,sh,sys,reg,... 239 + # BLOCKED_FILE_EXTENSIONS=exe,dll,bat,cmd,sh,... 240 + 241 + # Expiry time for incomplete file uploads in hours (integer) 242 + # Default: 24 (set to 0 to disable cleanup) 243 + # FILE_UPLOAD_EXPIRY_HOURS=24 244 + 245 + # ============================================================================ 246 + # JWT AUTHENTICATION 247 + # ============================================================================ 248 + 249 + # JWT access token lifetime in minutes (integer) 250 + # Default: 10 251 + # JWT_ACCESS_TOKEN_LIFETIME=10 252 + 253 + # JWT refresh token lifetime in minutes (integer) 254 + # Default: 30 255 + # JWT_REFRESH_TOKEN_LIFETIME=30 256 + 257 + # JWKS (JSON Web Key Set) base64-encoded (string) 258 + # Used for OpenID Connect authentication 259 + # Default: Generated from file 260 + # JWKS_BASE64= 261 + 262 + # ============================================================================ 263 + # SENTRY (ERROR TRACKING) 264 + # ============================================================================ 265 + 266 + # Sentry DSN for error tracking (string) 267 + # Default: "" (disabled) 268 + # SENTRY_DSN= 269 + 270 + # Sentry environment name (string) 271 + # Default: "deployment-unknown" 272 + # SENTRY_ENVIRONMENT=production 273 + 274 + # Sentry traces sample rate (float: 0.0 to 1.0) 275 + # Default: 0 276 + # SENTRY_TRACES_SAMPLE_RATE=0 277 + 278 + # Sentry profiles sample rate (float: 0.0 to 1.0) 279 + # Default: 0 280 + # SENTRY_PROFILES_SAMPLE_RATE=0 281 + 282 + # Sentry event logging level (integer) 283 + # Default: logging.ERROR (40) 284 + # SENTRY_EVENT_LEVEL=40 285 + 286 + # ============================================================================ 287 + # SMS / SNS CONFIGURATION 288 + # ============================================================================ 289 + 290 + # Enable SMS functionality (boolean: True/False) 291 + # Default: False (True in staging/production) 292 + # USE_SMS=False 293 + 294 + # AWS SNS access key for SMS (string) 295 + # Default: "" 296 + # SNS_ACCESS_KEY= 297 + 298 + # AWS SNS secret key for SMS (string) 299 + # Default: "" 300 + # SNS_SECRET_KEY= 301 + 302 + # AWS SNS region (string) 303 + # Default: "ap-south-1" 304 + # SNS_REGION=ap-south-1 305 + 306 + # Use SNS role-based authentication (boolean: True/False) 307 + # Default: False 308 + # SNS_ROLE_BASED_MODE=False 309 + 310 + # OTP SMS template path (string) 311 + # Default: "sms/otp_sms.txt" 312 + # OTP_SMS_TEMPLATE=sms/otp_sms.txt 313 + 314 + # ============================================================================ 315 + # EMAIL TEMPLATES 316 + # ============================================================================ 317 + 318 + # User create password email template path (string) 319 + # Default: "email/user_create_password.html" 320 + # USER_CREATE_PASSWORD_TEMPLATE_PATH=email/user_create_password.html 321 + 322 + # User reset password email template path (string) 323 + # Default: "email/user_reset_password.html" 324 + # USER_RESET_PASSWORD_TEMPLATE_PATH=email/user_reset_password.html 325 + 326 + # TOTP enabled email template path (string) 327 + # Default: "email/totp_enabled.html" 328 + # TOTP_ENABLED_EMAIL_TEMPLATE_PATH=email/totp_enabled.html 329 + 330 + # TOTP disabled email template path (string) 331 + # Default: "email/totp_disabled.html" 332 + # TOTP_DISABLED_EMAIL_TEMPLATE_PATH=email/totp_disabled.html 333 + 334 + # ============================================================================ 335 + # RATE LIMITING & CAPTCHA 336 + # ============================================================================ 337 + 338 + # Disable rate limiting (boolean: True/False) 339 + # Default: False 340 + # DISABLE_RATELIMIT=False 341 + 342 + # Rate limit specification (string, format: count/period) 343 + # Example: "5/10m" means 5 requests per 10 minutes 344 + # Default: "5/10m" 345 + # RATE_LIMIT=5/10m 346 + 347 + # Google reCAPTCHA secret key (string) 348 + # Default: "" 349 + # GOOGLE_RECAPTCHA_SECRET_KEY= 350 + 351 + # Google reCAPTCHA site key (string) 352 + # Default: "" 353 + # GOOGLE_RECAPTCHA_SITE_KEY= 354 + 355 + # ============================================================================ 356 + # AUDIT LOGS 357 + # ============================================================================ 358 + 359 + # Enable audit logging (boolean: True/False) 360 + # Default: False 361 + # AUDIT_LOG_ENABLED=False 362 + 363 + # ============================================================================ 364 + # MAINTENANCE MODE 365 + # ============================================================================ 366 + 367 + # Enable maintenance mode (integer: 0 or 1) 368 + # Default: 0 (disabled) 369 + # MAINTENANCE_MODE=0 370 + 371 + # ============================================================================ 372 + # DOMAIN CONFIGURATION 373 + # ============================================================================ 374 + 375 + # Current frontend domain (string) 376 + # Default: "localhost:4000" 377 + # CURRENT_DOMAIN=localhost:4000 378 + 379 + # Backend API domain (string) 380 + # Default: "localhost:9000" 381 + # BACKEND_DOMAIN=localhost:9000 382 + 383 + # ============================================================================ 384 + # MIDDLEWARE & PERFORMANCE 385 + # ============================================================================ 386 + 387 + # Enable request time logging middleware (boolean: True/False) 388 + # Default: False 389 + # ENABLE_REQUEST_TIME_LOGGING=False 390 + 391 + # Middleware request timeout in seconds (integer) 392 + # Default: 20 393 + # MIDDLEWARE_REQUEST_TIMEOUT=20 394 + 395 + # ============================================================================ 396 + # EXTERNAL SERVICES 397 + # ============================================================================ 398 + 399 + # Snowstorm FHIR server URL for SNOMED CT (string) 400 + # Default: "http://165.22.211.144/fhir" 401 + # SNOWSTORM_DEPLOYMENT_URL=http://165.22.211.144/fhir 402 + 403 + # Path to typst binary for document generation (string) 404 + # Default: "typst" 405 + # TYPST_BIN=typst 406 + 407 + # ============================================================================ 408 + # BUSINESS LOGIC / EMR CONFIGURATION 409 + # ============================================================================ 410 + 411 + # Maximum data points per upsert operation (integer) 412 + # Default: 100 413 + # MAX_DATAPOINTS_PER_UPSERT=100 414 + 415 + # Maximum requests per batch request (integer) 416 + # Default: 20 417 + # MAX_REQUESTS_PER_BATCH_REQUEST=20 418 + 419 + # Maximum appointments per patient (integer) 420 + # Default: 10 421 + # MAX_APPOINTMENTS_PER_PATIENT=10 422 + 423 + # Maximum active encounters per patient in a facility (integer) 424 + # Default: 5 425 + # MAX_ACTIVE_ENCOUNTERS_PER_PATIENT_IN_FACILITY=5 426 + 427 + # Password reset token TTL in hours (integer) 428 + # Default: 24 429 + # PASSWORD_RESET_TOKEN_TTL_HOURS=24 430 + 431 + # Maximum favorites per list (integer) 432 + # Default: 50 433 + # MAX_FAVORITES_PER_LIST=50 434 + 435 + # Maximum location hierarchy depth (integer) 436 + # Default: 10 437 + # LOCATION_MAX_DEPTH=10 438 + 439 + # Maximum organization hierarchy depth (integer) 440 + # Default: 10 441 + # ORGANIZATION_MAX_DEPTH=10 442 + 443 + # Maximum facility organization hierarchy depth (integer) 444 + # Default: 10 445 + # FACILITY_ORGANIZATION_MAX_DEPTH=10 446 + 447 + # Maximum locations in a facility (integer) 448 + # Default: 1000 449 + # MAX_LOCATION_IN_FACILITY=1000 450 + 451 + # Maximum organizations in a facility (integer) 452 + # Default: 1000 453 + # MAX_ORGANIZATION_IN_FACILITY=1000 454 + 455 + # Maximum slots per availability (integer) 456 + # Default: 30 457 + # MAX_SLOTS_PER_AVAILABILITY=30 458 + 459 + # Maximum questionnaire text response size (integer) 460 + # Default: 2500 461 + # MAX_QUESTIONNAIRE_TEXT_RESPONSE_SIZE=2500 462 + 463 + # Tax codes configuration (JSON array) 464 + # Default: Predefined Indian tax codes (IGST, CGST, SGST, UTGST) 465 + # TAX_CODES=[] 466 + 467 + # Tax monetary component definitions (JSON array) 468 + # Default: Predefined tax slabs (18%, 12%, 5%) 469 + # TAX_MONETARY_COMPONENT_DEFINITIONS=[] 470 + 471 + # Discount codes configuration (JSON array) 472 + # Default: Predefined discount codes (oldage, child, student) 473 + # DISCOUNT_CODES=[] 474 + 475 + # Discount monetary component definitions (JSON array) 476 + # Default: Predefined discount definitions 477 + # DISCOUNT_MONETARY_COMPONENT_DEFINITIONS=[] 478 + 479 + # Informational monetary codes (JSON array) 480 + # Default: [{"code": "mrp", "display": "MRP", ...}] 481 + # INFORMATIONAL_MONETARY_CODES=[] 482 + 483 + # Maintain patient name identifier (boolean: True/False) 484 + # Default: False 485 + # MAINTAIN_PATIENT_NAME_IDENTIFIER=False 486 + 487 + # Maintain patient phone number identifier (boolean: True/False) 488 + # Default: False 489 + # MAINTAIN_PATIENT_PHONE_NUMBER_IDENTIFIER=False 490 + 491 + # Maintain facility patient name identifier (boolean: True/False) 492 + # Default: True 493 + # MAINTAIN_FACILITY_PATIENT_NAME_IDENTIFIER=True 494 + 495 + # Patient name maximum length (integer) 496 + # Default: 75 497 + # PATIENT_NAME_MAX_LENGTH=75 498 + 499 + # Encounter restart time limit in hours (integer) 500 + # Default: 0 (disabled) 501 + # ENCOUNTER_RESTART_TIME_LIMIT_HOURS=0 502 + 503 + # Product extensions JSON schema (JSON object) 504 + # Default: {} 505 + # PRODUCT_EXTENSIONS_JSON_SCHEMA={} 506 + 507 + # Supply delivery extensions JSON schema (JSON object) 508 + # Default: {} 509 + # SUPPLY_DELIVERY_EXTENSIONS_JSON_SCHEMA={} 510 + 511 + # Supply delivery order extensions JSON schema (JSON object) 512 + # Default: {} 513 + # SUPPLY_DELIVERY_ORDER_EXTENSIONS_JSON_SCHEMA={} 514 + 515 + # ============================================================================ 516 + # DEVELOPMENT / DEBUGGING 517 + # ============================================================================ 518 + 519 + # Enable Django Silk profiler for development (boolean: True/False) 520 + # Default: False 521 + # ENABLE_SILK=False 522 + 523 + # Attach debugger for development (boolean: True/False) 524 + # Default: False 525 + # ATTACH_DEBUGGER=False
+3 -37
config/settings/base.py
··· 4 4 5 5 import logging 6 6 import warnings 7 - from datetime import datetime, timedelta 7 + from datetime import timedelta 8 8 from pathlib import Path 9 9 10 10 import environ ··· 331 331 "disable_existing_loggers": False, 332 332 "formatters": { 333 333 "verbose": { 334 - "format": "%(levelname)s %(asctime)s %(module)s " 335 - "%(process)d %(thread)d %(message)s" 334 + "format": "%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s" 336 335 }, 337 336 "request_time": { 338 337 "format": "INFO %(asctime)s %(message)s", ··· 506 505 OTP_MAX_REPEATS_WINDOW = 10 # times OTPs can be sent within OTP_REPEAT_WINDOW 507 506 OTP_LENGTH = 5 508 507 509 - # ICD 510 - # ------------------------------------------------------------------------------ 511 - ICD_SCRAPER_ROOT_CONCEPTS_URL = ( 512 - "https://icd.who.int/browse11/l-m/en/JsonGetRootConcepts" 513 - ) 514 - ICD_SCRAPER_CHILD_CONCEPTS_URL = ( 515 - "https://icd.who.int/browse11/l-m/en/JsonGetChildrenConcepts" 516 - ) 517 - 518 508 # Rate Limiting 519 509 # ------------------------------------------------------------------------------ 520 510 DISABLE_RATELIMIT = env.bool("DISABLE_RATELIMIT", default=False) ··· 527 517 # ------------------------------------------------------------------------------ 528 518 USE_SMS = False 529 519 530 - # Push Notifications 531 - # ------------------------------------------------------------------------------ 532 - VAPID_PUBLIC_KEY = env( 533 - "VAPID_PUBLIC_KEY", 534 - default="BKNxrOpAeB_OBfXI-GlRAlw_vUVCc3mD_AkpE74iZj97twMOHXEFUeJqA7bDqGY10O-RmkvG30NaMf5ZWihnT3k", 535 - ) 536 - VAPID_PRIVATE_KEY = env( 537 - "VAPID_PRIVATE_KEY", default="7mf3OFreFsgFF4jd8A71ZGdVaj8kpJdOto4cFbfAS-s" 538 - ) 539 - SEND_SMS_NOTIFICATION = False 540 - NOTIFICATION_RETENTION_DAYS = env.int("NOTIFICATION_RETENTION_DAYS", default=30) 541 - 542 520 # Cloud and Buckets 543 521 # ------------------------------------------------------------------------------ 544 522 ··· 692 670 ), 693 671 ) 694 672 FACILITY_CDN = env("FACILITY_CDN", default=None) 695 - # for setting the shifting mode 696 - PEACETIME_MODE = env.bool("PEACETIME_MODE", default=True) 697 - 698 - # we are making this tz aware in the app so no need to make it aware here 699 - MIN_ENCOUNTER_DATE = env( 700 - "MIN_ENCOUNTER_DATE", 701 - cast=lambda d: datetime.strptime(d, "%Y-%m-%d"), # noqa: DTZ007 702 - default=datetime(2020, 1, 1), # noqa: DTZ001 703 - ) 704 - 705 - # for exporting csv 706 - CSV_REQUEST_PARAMETER = "csv" 707 673 708 674 # current hosted domain 709 - CURRENT_DOMAIN = env("CURRENT_DOMAIN", default="localhost:8000") 675 + CURRENT_DOMAIN = env("CURRENT_DOMAIN", default="localhost:4000") 710 676 BACKEND_DOMAIN = env("BACKEND_DOMAIN", default="localhost:9000") 711 677 712 678 APP_VERSION = env("APP_VERSION", default="unknown")
-2
config/settings/local.py
··· 62 62 SMS_BACKEND = "care.utils.sms.backend.console.ConsoleBackend" 63 63 64 64 65 - MAINTAIN_PATIENT_NAME_IDENTIFIER = True 66 - 67 65 MAINTAIN_PATIENT_PHONE_NUMBER_IDENTIFIER = True
-1
config/settings/production.py
··· 6 6 7 7 IS_PRODUCTION = True 8 8 USE_SMS = env.bool("USE_SMS", default=True) # noqa F405 9 - SEND_SMS_NOTIFICATION = False
-10
docker/.prebuilt.env
··· 30 30 DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=False 31 31 DJANGO_SECURE_SSL_REDIRECT=False 32 32 DJANGO_SECURE_CONTENT_TYPE_NOSNIFF=False 33 - 34 - # HCX Sandbox Config for local and testing 35 - HCX_AUTH_BASE_PATH=https://staging-hcx.swasth.app/auth/realms/swasth-health-claim-exchange/protocol/openid-connect/token 36 - HCX_ENCRYPTION_PRIVATE_KEY_URL=https://raw.githubusercontent.com/Swasth-Digital-Health-Foundation/hcx-platform/main/demo-app/server/resources/keys/x509-private-key.pem 37 - HCX_IG_URL=https://ig.hcxprotocol.io/v0.7.1 38 - HCX_PARTICIPANT_CODE=qwertyreboot.gmail@swasth-hcx-staging 39 - HCX_PASSWORD=Opensaber@123 40 - HCX_PROTOCOL_BASE_PATH=http://staging-hcx.swasth.app/api/v0.7 41 - HCX_USERNAME=qwertyreboot@gmail.com 42 - HCX_CERT_URL=https://raw.githubusercontent.com/Swasth-Digital-Health-Foundation/hcx-platform/main/demo-app/server/resources/keys/x509-self-signed-certificate.pem