Skip to content

Where files live

Raylux keeps program files and data strictly apart. Program files are replaced on every upgrade and removed by an uninstall; the data directory is neither.

Program files

text
C:\Program Files\Raylux\
  nexus\
    raylux-nexus.exe        Nexus, registered as the RayluxNexus service
    fonts\                 fonts embedded into report PDFs
    web\                   the operator runtime (Spectrum)
    python\                the bundled Python 3.14t runtime
  studio\                  Raylux Studio, if installed
  lens\                    Raylux Lens, if installed
text
/usr/local/bin/raylux-nexus
/usr/local/share/raylux/web/
/usr/local/share/raylux/fonts/
/usr/local/lib/systemd/system/raylux-nexus.service

nexus\python and nexus\fonts are load-bearing names

Nexus finds both relative to its own executable. That is what lets you relocate the whole installation. Move or rename either directory and you must point at it with RAYLUX_PYTHON_HOME or RAYLUX_FONTS_DIR instead.

The data directory

PlatformLocation
WindowsC:\ProgramData\Raylux
Linux/var/lib/raylux

This is what you back up. It survives uninstall.

File or folderContents
raylux_project.jsonThe whole configuration — tags, devices, screens, alarms, reports, projects.
raylux_users.jsonUser accounts and password hashes.
raylux_refresh_tokens.jsonActive sign-in sessions.
raylux_secrets.jsonEncrypted credentials for devices, email and databases.
raylux_history.dbRecorded process history. Usually the largest file here.
raylux_history_buffer.dbHistory not yet written to its final destination.
raylux_audit.dbWho changed what, and who wrote to which tag.
raylux_alarms.dbAlarm state and history.
raylux_system.dbNexus internals, including user preferences.
raylux_license.raylux-licenseThe installed licence.
raylux_first_boot.txtThe one-time commissioning token. Inert once an administrator exists — delete it.
certs/TLS certificate and private key.
logs/raylux_nexus.logThe rotating Nexus log.
downloads/Studio and Lens setup programs, served by the Downloads page.
assets/Images and files uploaded to projects.
templates/Project templates.

Restrict access to this directory

It holds the TLS private key, every stored device credential and all your history. On Windows it inherits C:\ProgramData permissions; tighten them if non-administrators can log on to Nexus.

Moving the data directory

Set RAYLUX_DATA_DIR, or pass --data-dir. On Windows the service has the path baked into its registration, so change it by re-registering the service rather than by setting a variable a service will not see.

Stop Nexus, move the directory, then start it again — nothing in it is tied to its own path.

Logs

Nexus writes logs/raylux_nexus.log in the data directory and rotates it. On Linux the same lines also reach the journal (journalctl -u raylux-nexus).

Administrators can read the log in the browser without server access, on the Nexus's Logs page.