For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • BedrockAgent
      • CLI Tools
      • Configuration
        • AuthHandler
        • ConfigLoader
        • Environment Variables
        • SecurityConfig
          • get_basic_auth
          • get_cors_config
          • get_security_headers
          • get_ssl_context_kwargs
          • get_url_scheme
          • load_from_env
          • log_config
          • should_allow_host
          • validate_ssl_config
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions
      • LiveWire
      • MCP Gateway
      • PomBuilder
      • Prefabs
      • Search
      • SkillBase
      • Skills
      • SWAIGFunction
      • SWMLBuilder
      • SWMLService
      • WebService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • Chat
      • Compat
      • Datasphere
      • Fabric
      • Imported Numbers
      • Logs
      • Lookup
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSub
      • Queues
      • Recordings
      • Registry
      • RestClient
      • Short Codes
      • SignalWireRestError
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Returns
  • Example
AgentsConfigurationSecurityConfig

load_from_env

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

log_config

Next
Built with

Reload all settings from environment variables. This is called automatically during construction but can be called again to pick up runtime changes.

Returns

None

Example

1import os
2from signalwire.core.security_config import SecurityConfig
3
4security = SecurityConfig()
5
6os.environ["SWML_SSL_ENABLED"] = "true"
7security.load_from_env()
8
9print(f"SSL enabled: {security.ssl_enabled}") # True