betty.extension.nginx.config module¶
Integrate Betty with nginx.
- class betty.extension.nginx.config.NginxConfiguration[source]¶
Bases:
Configuration
Provide configuration for the
betty.extension.nginx.Nginx
extension.- dump() bool | int | float | str | None | MutableSequence[bool | int | float | str | None | MutableSequence[Dump] | MutableMapping[str, Dump]] | MutableMapping[str, bool | int | float | str | None | MutableSequence[Dump] | MutableMapping[str, Dump]] | type[Void] [source]¶
Dump this instance to a portable format.
- property https: bool | None¶
Whether the nginx server should use HTTPS.
- Returns:
True
to use HTTPS (and HTTP/2),False
to use HTTP (and HTTP 1),None
to let this behavior depend on whether the project’s base URL uses HTTPS or not.
- load(dump: bool | int | float | str | None | MutableSequence[bool | int | float | str | None | MutableSequence[Dump] | MutableMapping[str, Dump]] | MutableMapping[str, bool | int | float | str | None | MutableSequence[Dump] | MutableMapping[str, Dump]]) None [source]¶
Load dumped configuration.
- Raises:
betty.assertion.error.AssertionFailed – Raised if the dump contains invalid configuration.