Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# betty.extension.nginx.serve module

Integrate the nginx extension with Betty’s Serve API.

final class betty.extension.nginx.serve.DockerizedNginxServer

  Bases: `Server`

  An nginx server that runs within a Docker container.

  __init__(project: Project) → None
  classmethod is_available() → bool

    Check if Docker is available.

  property public_url: str

    The server’s public URL.

  async start() → None

    Start the server.

  async stop() → None

    Stop the server.