{# Tools > Make this a data server (A2.4, Hani #1 2026-10-23): Portal administrators, Ubuntu servers. #} {% set ds = ds_setup %}
Data server{% if ds.step == 'connected' %} This Portal's data server{% elif ds.step == 'saved' %} Saved, not connected yet{% elif ds.step in ('install', 'plan') %} In progress{% endif %}Keep this Portal's monitoring history and logs on this server {% if ds_done %}
{{ ds_done }}
{% endif %}{% if ds_error %}{% endif %}
    {% for key, label in [('start', 'Readiness check'), ('install', 'Install PostgreSQL'), ('plan', 'Review changes'), ('saved', 'Approve in Settings → Data server'), ('connected', 'Connected')] %}
  1. {{ label }}
  2. {% endfor %}
{% if ds.checks %}

Readiness check

{% endif %} {% if ds.step in ('start', 'connected', 'saved') %} {% if ds.step == 'connected' %}{% set k = ds.current.get('key') or {} %}

Connection key

{% if k.get('id') %}
Key
{{ k.get('id') }} · {{ k.get('hint') }}
Valid until
{% if k.get('expires') %}{{ k.get('expires')[:10] }}{% if k.get('days_left') is not none %} ({{ k.get('days_left') }} days){% endif %}{% else %}no expiry{% endif %} {% if k.get('state') == 'expired' %}Expired{% elif k.get('state') in ('renew', 'no-expiry') %}Renew{% else %}Valid{% endif %}
{% else %}

No key yet This data server was connected before keys had an ID and an expiry. Generate one below.

{% endif %}

A new key is generated on the server, valid for the period set in Settings → Data server, and stored write-only in this Portal; the old one stops working at once. The account below is used once and forgotten.

Re-apply all of NEXXVU's settings on this server {% elif ds.step == 'saved' %}

This server is saved as the data server. Approve its certificate in Settings → Data server, then check the connection.

{% else %}

For large ecosystems: the monitoring history and logs live on this server instead of the Portal (pages stay fast, history can grow, updates stay small). NEXXVU signs in to {{ ds.address }} with the root or sudo account, checks the server and shows exactly what it would change; nothing is changed in this step. The account is kept in memory until you apply (at most 15 minutes) and never stored.

{% endif %} {% if ds.typed_only %}

{{ fresh_tag("data:order") }}{{ ds.address }} is entered in Settings › Data server, but NEXXVU has not prepared it yet: its PostgreSQL still answers only on the server itself, so the Portal is refused. Run the readiness check below, review the changes and apply them; the saved entry is then completed for you.

{% endif %} {% if ds.current.address and not ds.this %}

{{ ds.current.address }} is saved as this Portal's data server{% if ds.current.mode != 'local' %} and holds the monitoring history; bring the history back first (Settings → Data server){% endif %}.

{% endif %}
{% if ds.logs_available and not (ds.this and ds.step == 'connected') %}
This server keeps
{% else %}{% endif %}
{% if ds.step == 'connected' %}
{% endif %} {% elif ds.step == 'install' %}{% set p = ds.plan %} {% if ds.installing %}

Installing PostgreSQL on {{ ds.address }}… NEXXVU checks every 10 seconds; this page follows by itself.

{% else %}{% if ds.install_error %}{% endif %}

What NEXXVU will run on the server (as root, in the background)

apt-get install -y postgresql ssl-cert
{% endif %}
{% elif ds.step == 'plan' %}{% set p = ds.plan %}
Keeps
{{ 'Logs only' if p.role == 'logs' else 'Monitoring history and logs' }}
Server
{{ ds.address }} · PostgreSQL {{ p.version }}
New key valid for
{{ p.valid_days }} days
Portal seen from
{{ p.source }}
Databases
{{ p.databases|join(', ') if p.databases else 'created now' }}

Changes NEXXVU will make on the server

{% for line in p.changes %}{{ line }}
{% endfor %}
{% endif %}