betty.extension.nginx.serve module

Integrate the nginx extension with Betty’s Serve API.

final class betty.extension.nginx.serve.DockerizedNginxServer[source]

Bases: Server

An nginx server that runs within a Docker container.

__init__(project: Project) None[source]
classmethod is_available() bool[source]

Check if Docker is available.

property public_url: str

The server’s public URL.

async start() None[source]

Start the server.

async stop() None[source]

Stop the server.