server.args¶
- class server.args.Args(use_base_env: bool, cert_path: ~pathlib._local.Path = PosixPath('/home/docs/.local/share/psync/cert.pem'), key_path: ~pathlib._local.Path = PosixPath('/home/docs/.local/share/psync/key.pem'), host: str = '0.0.0.0', port: str = '5000', origins: list[str] = <factory>, log_level: str = 'INFO', user: str | None = None)¶
Bases:
objectServer arguments.
- cert_path: Path = PosixPath('/home/docs/.local/share/psync/cert.pem')¶
environ:
PSYNC_SSL_CERT_PATHPath to the SSL certificate used to authenticate this server.
- host: str = '0.0.0.0'¶
environ:
PSYNC_SERVER_IPHost IP on which to listen for incoming connections.
- key_path: Path = PosixPath('/home/docs/.local/share/psync/key.pem')¶
environ:
PSYNC_SSL_KEY_PATHPath to the SSL private key.
- origins: list[str]¶
environ:
PSYNC_ORIGINSAccepted client origins. Should match the HTTP Origin header.
- port: str = '5000'¶
environ:
PSYNC_SERVER_PORTHost port on which to listen for incoming connections.