uniqc.gateway.config module

Gateway server configuration — reads gateway.port/host from config.yaml.

uniqc.gateway.config.load_gateway_config(*, host_override=None)[source]

Load the [gateway] section from ~/.uniqc/config.yaml.

If the key is absent the defaults apply:

port: 18765 host: 127.0.0.1 (localhost-only for security)

uniqc.gateway.config.save_gateway_config(*, port=None, host=None)[source]

Persist gateway settings into config.yaml, preserving all other keys.

uniqc.gateway.config.validate_loopback_host(host)[source]

Return a normalized loopback host or raise ValueError.