# nomad-api UCI config.
#
# Defaults are deliberately restrictive: LAN-only bind, fixed port.
# Override with `uci set nomad-api.main.bind=...; uci commit; /etc/init.d/nomad-api restart`.

config api 'main'
    # LAN-side IP of the router (GL.iNet default). The API rejects
    # 0.0.0.0 unless `allow_any` is set to 1 – see
    # __main__._validate_bind_security.
    option bind '192.168.8.1'
    option port '8765'
    option allow_any '0'
    # Transparent GL.iNet SSO: when '1' (default), opening Nomad from the
    # GL admin panel signs the browser in using the router login. '0' forces
    # the Nomad Web-UI password / on-screen code.
    option gl_sso '1'
