Configuration
Everything is in one file, /etc/xlx-observatory/xlx-observatory.ini. It
uses the same style as xlxd.ini: [Section] headers, KEY=VALUE
lines, and comments starting with # or ;. Section and key names are
not case-sensitive.
Anything left out keeps its default, shown in the tables below. The installed file lists every setting with its default and a description.
The file is read when the service starts. Restart it after changing anything:
systemctl restart xlx-observatory
The files that settings point at (banner, logos, custom.css) are
different: they are read again on each page view, so changes to them show
on the next reload.
Mistakes stop the service
A misspelled setting or a value out of range stops the service from starting, with the file name and line number in the log:
journalctl -u xlx-observatory -n 20
[Server]
| Setting | Default | Purpose |
|---|---|---|
LISTEN |
127.0.0.1:8090 |
Address and port to serve the pages on. Keep it on 127.0.0.1 and publish it through nginx or Apache. |
[Reflector]
Where to find xlxd. The defaults match the xlxd Debian package. With
another build of xlxd, copy the paths from its xlxd.ini.
| Setting | Default | Purpose |
|---|---|---|
XML_PATH |
/var/log/xlxd.xml |
xlxd's status file (XML_PATH in xlxd.ini). Everything on the Users, Repeaters & nodes and Peers pages comes from here. |
PID_PATH |
/run/xlxd/xlxd.pid |
xlxd's process ID file (PID_PATH in xlxd.ini). Used for the Up time in the header. |
MONITOR |
127.0.0.1:10001 |
xlxd's JSON monitor (JSON_PORT in xlxd.ini), for instant on-air updates. Leave empty to turn it off. |
INTERLINK_PATH |
/etc/xlxd/xlxd.interlink |
xlxd's interlink file, sent to the XLX directory when calling home. |
One monitor per reflector
xlxd sends its live monitor to one listener at a time: whichever asked last. Don't point two dashboards (for example, this one and the old PHP dashboard's live page) at the same reflector. Without the monitor, pages still update whenever the status file changes, which xlxd does every 10 seconds.
[Page]
| Setting | Default | Purpose |
|---|---|---|
CONTACT_EMAIL |
(empty) | Shown at the bottom of every page as a link |
CUSTOM_TEXT |
(empty) | A line of text under the reflector name |
BANNER_PATH |
(empty) | An HTML file shown above the Last heard table. See Banner. |
LOGO_PATH |
(empty) | An image shown with the reflector name. See Logos, Name & Colors. |
HEADER_LOGO_PATH |
(empty) | An image in place of the XLX Observatory symbol at the top left. See Logos, Name & Colors. |
HEADER_NAME |
(empty) | Text in place of XLX OBSERVATORY at the top left, such as your club's name |
CUSTOM_CSS_PATH |
/etc/xlx-observatory/custom.css |
Your own colors and styles. See Logos, Name & Colors. Leave empty to load none. |
NUMBER_OF_MODULES |
10 |
Modules listed on the Modules page, 1 to 26 |
LASTHEARD_LIMIT |
40 |
Rows on the Users page, 1 to 1000 |
NODES_LIMIT |
100 |
Rows on the Repeaters & nodes page, 1 to 10000 |
PEERS_LIMIT |
100 |
Rows on the Peers page, 1 to 10000 |
NODES_IP |
full |
How much of each node's IP address to show |
PEERS_IP |
full |
How much of each peer's IP address to show |
MASK_CHAR |
* |
The character that replaces hidden parts of an IP address |
NODES_IP and PEERS_IP take one of:
| Value | Shows |
|---|---|
full |
192.0.2.44 |
last3 |
*.0.2.44 |
last2 |
*.*.2.44 |
last1 |
*.*.*.44 |
hide |
No IP column at all |
Banner
The banner is a piece of HTML, shown above the Last heard table on the
Users page. Use it for net schedules, announcements, or a link to your
club's site. For example, /etc/xlx-observatory/banner.html:
<p><strong>Weekly net:</strong> Tuesdays at 8 pm Eastern on module C.
All are welcome.</p>
and in [Page]:
BANNER_PATH=/etc/xlx-observatory/banner.html
The file is read on each page view, so edits show without a restart. It
is shown exactly as written, so only the administrator should be able to
change it. It must be readable by the xlx-observatory user. If it is
missing, no banner is shown.
[Modules]
Names for the modules, shown next to the module letters on the Users and
Modules pages. One line per module, A to Z:
[Modules]
A=International
B=Regional
C=Club net
D=Emergency
Modules without a name show only their letter.
[CallingHome]
Registering the reflector with the XLX directory. Off by default. See Calling Home for what it does and how to turn it on.
| Setting | Default | Purpose |
|---|---|---|
ENABLE |
0 |
1 to register the reflector, 0 not to |
DASHBOARD_URL |
(empty) | The dashboard's public address, listed in the directory |
COUNTRY |
(empty) | The reflector's country, free text, such as United States |
COMMENT |
(empty) | A short description, 100 characters at most |
OVERRIDE_IP |
(empty) | The IP address the directory lists. Leave empty for the address the registration comes from. |
INTERVAL |
600 |
Seconds between registrations, 60 or more |
SERVER_URL |
http://xlxapi.rlx.lu/api.php |
The directory. Don't change this. |
HASH_PATH |
/etc/xlx-observatory/callinghome.hash |
The reflector's directory key |
IMPORT_HASH_PATH |
/etc/xlxd/callinghome.php |
The PHP dashboard's key file, imported when HASH_PATH doesn't exist yet |
ENABLE also accepts yes/no, true/false and on/off.
[ReflectorList]
| Setting | Default | Purpose |
|---|---|---|
INTERVAL |
600 |
Seconds between downloads of the directory's reflector list, 60 or more. The list fills the Reflectors page and the links to peers' dashboards. |
The list is downloaded whether or not calling home is turned on.
A Typical Configuration
[Page]
CONTACT_EMAIL=sysop@example.org
CUSTOM_TEXT=Questionable ARC multimode reflector: D-Star, DMR and YSF
BANNER_PATH=/etc/xlx-observatory/banner.html
NUMBER_OF_MODULES=6
NODES_IP=last2
PEERS_IP=full
[Modules]
A=International
B=Regional
C=Club net
D=Emergency
[CallingHome]
ENABLE=1
DASHBOARD_URL=https://xlx.example.org/
COUNTRY=United States
COMMENT=Questionable ARC: D-Star, DMR and YSF