# /etc/default/openrsp-iqd: options of the openrsp-iqd service. OPTS is passed to
# /usr/bin/openrsp-iqd as it is (`openrsp-iqd --help` lists every option); after a change:
#   sudo systemctl restart openrsp-iqd
#
#   --device SERIAL     offer only this receiver (repeatable; default: every receiver found,
#                       checked every 3 s); `openrsp-iqd --list` prints the serials
#   --port N            TCP port (default 8073)
#   --bind ADDR         address to listen on (default 0.0.0.0: every interface)
#   --token TOKEN       a page on the network must present this token: open
#                       https://<host>:8073/#token=TOKEN (--token-file FILE: read from the file's
#                       first line). Without it (the default) anyone who can reach the port can
#                       use the receivers.
#   --cert PEM --key PEM  HTTPS with this certificate and key (default: a self-signed certificate
#                       made on the first start and kept in /var/lib/openrsp-iqd; the browser
#                       asks once to accept it)
#   --tunnel            also reachable from the internet through a Cloudflare Quick Tunnel
#                       (/usr/lib/openrsp/cloudflared). Its https://<...>.trycloudflare.com address
#                       is in the log (journalctl -u openrsp-iqd) and changes on every start. Pages
#                       coming through it must present the tunnel's own token (made once, kept in
#                       /var/lib/openrsp-iqd/token; the full link with it is logged).
#   --tunnel-always     the tunnel runs whenever the server does; without it, it runs only while
#                       a receiver is plugged in and stops 60 s after the last one has gone (a new
#                       address each time it starts)
#   --tunnel-token TOKEN  the tunnel's token instead of the kept one
#   --tunnel-no-token   pages coming through the tunnel need no token
#   --token-rotate, --tunnel-token-rotate
#                       replace that token after use: once a page that used it has gone (and not
#                       come back within 30 s) a new one is made, kept in /var/lib/openrsp-iqd
#                       (lan-token, token) and its link logged. --token-rotate without --token makes
#                       the network token itself.
#   --mdns-name NAME    the mDNS name (default openrsp: openrsp.local), published through
#                       avahi-daemon when it runs, else by its own responder
#   --no-mdns           no mDNS name
#   --max-margin LEVEL  the highest IQ quality a page gets: the quantisation LEVEL dB below the
#                       band's noise (10, 13, 16, 20, 26: practically lossless) or lossless; default
#                       10. A page chooses up to it (Quality, beside Stream).
#   --max-rate RATE     the highest sample rate a page may ask of every receiver (each tuner's
#                       stream): 2M, 2000000, 2.048e6, 500k; 0 or none: no limit (the default).
#                       The page offers only the rates up to it and greys out the modes that need
#                       more.
#   --max-rate SERIAL=RATE, --max-rate "MODEL SERIAL"=RATE
#                       the same for one receiver (repeatable; MODEL SERIAL as the log's
#                       "receivers offered" line names it). A receiver's limit: its own --max-rate,
#                       else /var/lib/openrsp-iqd/max-rates.json ({"MODEL SERIAL": Hz}), else the
#                       --max-rate default.
#   --tunnel-max-margin LEVEL, --tunnel-max-rate [RECEIVER=]RATE
#                       the same two limits for pages coming through the tunnel (without them
#                       --max-margin / --max-rate apply to those pages too); the tunnel's own caps are
#                       kept in /var/lib/openrsp-iqd/max-rates-tunnel.json
#   --max-users N, --lan-max-users N, --tunnel-max-users N
#                       the most pages connected at once: all networks together, from this
#                       network, through the tunnel (0: no limit; defaults 0, 0 and 5). A page
#                       that comes when one is reached is told the server is full and connects by
#                       itself once a place is free; a page with the token always gets in
#   --no-logos          no FM / DAB station logos
#   --no-admin          no admin page. Otherwise https://<host>:8073/admin/ changes the quality,
#                       token, tunnel and sample rate settings while the server runs; its password
#                       (made once, kept in /var/lib/openrsp-iqd/admin-password) is in the log at each
#                       start. Settings changed there are kept in /var/lib/openrsp-iqd/settings.json;
#                       those given here stay as given.
#   --verbose           the driver's informational log lines too
#
# Example: OPTS="--tunnel"
OPTS=""
