betty.extension.nginx.config module¶
Integrate Betty with nginx.
- class betty.extension.nginx.config.NginxConfiguration[source]¶
Bases:
ConfigurationProvide configuration for the
betty.extension.nginx.Nginxextension.- dump() bool | int | float | str | None | Sequence[bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | Mapping[str, bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | type[betty.serde.dump.Void][source]¶
Dump this instance to a portable format.
- Return type:
typing.Union[bool,int,float,str,None,typing.Sequence[typing.Union[bool,int,float,str,None,typing.Sequence[Dump],typing.Mapping[str, Dump]]],typing.Mapping[str,typing.Union[bool,int,float,str,None,typing.Sequence[Dump],typing.Mapping[str, Dump]]],type[betty.serde.dump.Void]]
- property https: bool | None¶
Whether the nginx server should use HTTPS.
- Returns:
Trueto use HTTPS (and HTTP/2),Falseto use HTTP (and HTTP 1),Noneto let this behavior depend on whether the project’s base URL uses HTTPS or not.
- classmethod load(dump: bool | int | float | str | None | Sequence[bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | Mapping[str, bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]], configuration: Self | None = None) Self[source]¶
Load dumped configuration into a new configuration instance.
- Parameters:
dump (
typing.Union[bool,int,float,str,None,typing.Sequence[typing.Union[bool,int,float,str,None,typing.Sequence[Dump],typing.Mapping[str, Dump]]],typing.Mapping[str,typing.Union[bool,int,float,str,None,typing.Sequence[Dump],typing.Mapping[str, Dump]]]])configuration (
typing.Optional[typing.Self])
- Return type:
typing.Self