betty.extension.nginx.serve module

Integrate the nginx extension with Betty’s Serve API.

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

Bases: Server

An nginx server that runs within a Docker container.

Parameters:

app (betty.app.App)

__init__(app: betty.app.App) None[source]
Parameters:

app (betty.app.App)

classmethod is_available() bool[source]

Check if Docker is available.

Return type:

bool

property public_url: str

The server’s public URL.

async start() None[source]

Start the server.

Return type:

None

async stop() None[source]

Stop the server.

Return type:

None