text: # project/server/config.py
  
  from dotenv import load_dotenv
  
  import os
  
  load_dotenv()
  
  basedir = os.path.abspath(os.path.dirname(__file__))
  postgres_local_base = 'postgresql://postgres:@localhost/'
  database_name = os.getenv('DB_NAME', 'flask_jwt_auth')
  
  class BaseConfig:
      """Base configuration."""
      SECRET_KEY = os.getenv('SECRET_KEY', 'my_precious')
      DEBUG = False
      BCRYPT_LOG_ROUNDS = 13
      SQLALCHEMY_TRACK_MODIFICATIONS = False
  
  
  class DevelopmentConfig(BaseConfig):
      """Development configuration."""
      DEBUG = True
      BCRYPT_LOG_ROUNDS = 4
      SQLALCHEMY_DATABASE_URI = postgres_local_base + database_name
  
  
  class TestingConfig(BaseConfig):
      """Testing configuration."""
      DEBUG = True
      TESTING = True
      BCRYPT_LOG_ROUNDS = 4
      SQLALCHEMY_DATABASE_URI = postgres_local_base + database_name + '_test'
      PRESERVE_CONTEXT_ON_EXCEPTION = False
  
  
  class ProductionConfig(BaseConfig):
      """Production configuration."""
      DEBUG = False
      SECRET_KEY = os.getenv('SECRET_KEY')
      DB_HOST = os.getenv('DB_HOST')
      DB_USER = os.getenv('DB_USER')
      DB_PASS = os.getenv('DB_PASS')
      DB_PORT = os.getenv('DB_PORT')
      SQLALCHEMY_DATABASE_URI = f"postgresql://{DB_USER}:{DB_PASS}@{DB_HOST}:{DB_PORT}/" + database_name
  