text: import logging
  import os
  from pathlib import Path
  
  logger = logging.getLogger(__name__)
  
  BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
  ENV_FILE = os.getenv('ENV_FILE', None)
  if ENV_FILE:
      from dotenv import load_dotenv
      print(f"Running locally hence injecting env vars from {ENV_FILE}")
      load_dotenv(ENV_FILE, override=True, verbose=True)
  
  HTTP_PORT = str(os.getenv('HTTP_PORT', "5000"))
  LOGS_DIR = os.getenv('LOGS_DIR', str(BASE_DIR / 'logs'))
  os.environ['LOGS_DIR'] = LOGS_DIR  # Set default if not set
  LOGGING_CFG = os.getenv('LOGGING_CFG', 'logging-cfg-local.yml')
  TRAP_HTTP_EXCEPTIONS = True
  
  # Definition of the allowed domains for CORS implementation
  ALLOWED_DOMAINS_STRING = os.getenv('ALLOWED_DOMAINS')
  if ALLOWED_DOMAINS_STRING is None or ALLOWED_DOMAINS_STRING == "":
      logger.error("No allowed domains pattern from env was found")
      raise RuntimeError("Environment variable $ALLOWED_DOMAINS was not set")
  
  ALLOWED_DOMAINS = ALLOWED_DOMAINS_STRING.split(',')
  
  # Proxy settings
  FORWARED_ALLOW_IPS = os.getenv('FORWARED_ALLOW_IPS', '*')
  FORWARDED_PROTO_HEADER_NAME = os.getenv('FORWARDED_PROTO_HEADER_NAME', 'X-Forwarded-Proto')
  WSGI_WORKERS = int(os.getenv('WSGI_WORKERS', '2'))
  if WSGI_WORKERS <= 0:
      from multiprocessing import cpu_count
      WSGI_WORKERS = (cpu_count() * 2) + 1
  WSGI_TIMEOUT = int(os.getenv('WSGI_TIMEOUT', '3'))