Some checks failed
- Add complete hosting module (models, routes, schemas, services, templates, migrations) - Add HostWizard platform to init_production seed (code=hosting, domain=hostwizard.lu) - Fix cms_002 migration down_revision to z_unique_subdomain_domain - Fix prospecting_001 migration to chain after cms_002 (remove branch label) - Add hosting/prospecting version_locations to alembic.ini - Fix admin_services delete endpoint to use proper response model - Add hostwizard.lu to deployment docs (DNS, Caddy, Cloudflare) - Add hosting and prospecting user journey docs to mkdocs nav Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
739 B
Python
32 lines
739 B
Python
# app/modules/hosting/config.py
|
|
"""
|
|
Module configuration.
|
|
|
|
Environment-based configuration using Pydantic Settings.
|
|
Settings are loaded from environment variables with HOSTING_ prefix.
|
|
|
|
Example:
|
|
HOSTING_DEFAULT_BILLING_PERIOD=annual
|
|
"""
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class ModuleConfig(BaseSettings):
|
|
"""Configuration for hosting module."""
|
|
|
|
# Default billing period for new services
|
|
default_billing_period: str = "monthly"
|
|
|
|
# Days before expiry to trigger renewal alerts
|
|
renewal_alert_days: int = 30
|
|
|
|
# Default currency for pricing
|
|
default_currency: str = "EUR"
|
|
|
|
model_config = {"env_prefix": "HOSTING_"}
|
|
|
|
|
|
# Export for auto-discovery
|
|
config_class = ModuleConfig
|
|
config = ModuleConfig()
|