Noyau
Sections

Documentation › Get started

Access from outside

Noyau works with or without a VPN. You choose the mode in the setup wizard ("Remote access" step) or in Settings > Remote access (administrators). The commands shown there are ready to copy, with your domain.

Mode exposure value Reachable from Open port HTTPS behind-proxy
Local network only local Home Wi-Fi none Noyau local certificate no
VPN (Tailscale, WireGuard) vpn your devices on the VPN none (Tailscale) / UDP 51820 (WireGuard) tailscale serve or local certificate no
Tunnel (Cloudflare) tunnel Internet none Cloudflare yes
Reverse proxy (Caddy, Nginx) proxy Internet 80, 443 Let's Encrypt via the proxy yes
Built-in HTTPS direct Internet 443 → https-port Let's Encrypt loaded by Noyau no

From the command line:

noyau config set exposure tunnel             # local | vpn | tunnel | proxy | direct
noyau config set public-url https://noyau.example.com
noyau service restart                        # the mode applies on restart
noyau expose                                 # mode, URL, phone address, command to run
noyau expose check                           # real check from the public URL

exposure also sets behind-proxy (yes for tunnel and proxy). Equivalent variables: NOYAU_EXPOSURE, NOYAU_PUBLIC_URL, NOYAU_TLS_CERT_FILE, NOYAU_TLS_KEY_FILE.

1. Local network only

The default. Noyau serves HTTPS with its own local authority; each device installs /noyau-ca.cer once (or accepts the browser warning). Nothing can be reached from outside the home.

2. VPN

Tailscale (the simplest, no open port):

sudo tailscale up
# Real certificate, nothing to install on the phone: Tailscale console > DNS > HTTPS Certificates, then
sudo tailscale serve --bg https+insecure://127.0.0.1:4243
  • Noyau detects the tailnet address (100.x) and the https://<machine>.<tailnet>.ts.net URL served by tailscale serve; the phone QR code uses it first.
  • https+insecure: Tailscale relays over TLS to Noyau's HTTPS port, which keeps Secure cookies and wss WebSockets working.
  • Without tailscale serve: https://100.x.y.z:4243 with the local certificate.
  • To stop: sudo tailscale serve --https=443 off.

WireGuard: enable the WireGuard server on your internet box (Freebox, Livebox, Bbox, router) and create one profile per device, or install it on this machine and open only UDP port 51820. Noyau detects wg* interfaces and offers their address.

3. Tunnel without opening a port (Cloudflare Tunnel)

Instant trial, no account needed (random trycloudflare.com address that changes on every run):

cloudflared tunnel --url http://127.0.0.1:4242

Fixed address on your domain (free Cloudflare account):

cloudflared tunnel login
cloudflared tunnel create noyau
cloudflared tunnel route dns noyau noyau.example.com
cloudflared tunnel run --url http://127.0.0.1:4242 noyau
sudo cloudflared service install   # so that it runs permanently

Then exposure=tunnel and public-url=https://noyau.example.com. Recommended: Cloudflare Access in front of the subdomain (Zero Trust > Access > Applications), an e-mail login before even reaching Noyau.

4. Direct exposure

The domain points (A/AAAA record) to this machine.

Reverse proxy: Caddy obtains and renews the Let's Encrypt certificate on its own:

noyau.example.com {
    reverse_proxy 127.0.0.1:4242
}

Nginx (terminal WebSockets included), certificate with sudo certbot --nginx -d noyau.example.com:

server {
    listen 443 ssl http2;
    server_name noyau.example.com;
    ssl_certificate     /etc/letsencrypt/live/noyau.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/noyau.example.com/privkey.pem;
    client_max_body_size 200m;
    location / {
        proxy_pass http://127.0.0.1:4242;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 1d;
    }
}
  • Noyau then listens on 127.0.0.1: only the proxy can reach it.
  • Proxy on another machine or in Docker: add its address to trust-proxy (docker-compose.yml sets loopback, uniquelocal). Otherwise Noyau ignores X-Forwarded-*.
  • Details: install.md, Behind a reverse proxy.

Built-in HTTPS: without a proxy, Noyau loads the Let's Encrypt certificate itself:

sudo certbot certonly --standalone -d noyau.example.com      # port 80 open for the duration of the request
sudo install -D -m 600 -o "$USER" /etc/letsencrypt/live/noyau.example.com/fullchain.pem ~/.noyau/data/certs/fullchain.pem
sudo install -D -m 600 -o "$USER" /etc/letsencrypt/live/noyau.example.com/privkey.pem ~/.noyau/data/certs/privkey.pem
noyau config set exposure direct
noyau config set tls-cert ~/.noyau/data/certs/fullchain.pem
noyau config set tls-key ~/.noyau/data/certs/privkey.pem
noyau config set public-url https://noyau.example.com

Forward port 443 on your box to https-port (4243). On renewal, copy the files again (certbot renew --deploy-hook) then restart Noyau.

Real check

"Check access" (Settings) and noyau expose check [url] call the public URL the way the phone would, then check:

Item What is checked
Access The URL responds and really leads to this instance (identifier data/instance-id), not to another service. An HTTP → HTTPS redirect is followed and reported.
Certificate Trusted by devices (Let's Encrypt, Cloudflare, Tailscale), or Noyau local authority (to be installed), upcoming expiry (last third of its lifetime, at most 14 days).
Cookies The Secure; HttpOnly; SameSite test cookie comes back intact (proxy that filters Set-Cookie).
Proxy headers tunnel/proxy modes: X-Forwarded-Proto, -For, -Host received from a trusted proxy; Noyau sees the visitor's real address.
WebSocket wss established all the way to Noyau (terminals, live streams): Upgrade/Connection forwarded.

Exit code 0 if everything works, 1 otherwise. The check applies to the running server: restart Noyau first after changing the mode.

Public probe used (no authentication, reveals nothing else): GET /api/exposure/probe and WebSocket /ws/exposure-probe.

Security when Noyau is exposed without a VPN

Agents have access to the machine's files and terminal. In tunnel, proxy and direct modes, the page shows a security summary:

  • Sign-ups: closed or requiring approval (Settings > Administration). Open = danger.
  • Account list on the sign-in screen: hide it.
  • Passkey for each administrator (Face ID, fingerprint, security key): replaces the password and resists phishing. Noyau has no TOTP code.
  • Public URL over HTTPS is mandatory.
  • Sign-in attempt limiting (already in place): 20 failures per address and 5 per username every 15 minutes, counted on the visitor's real address forwarded by a trusted proxy (and no longer on the proxy's address, which blocked everyone at once).
  • Tunnel: Cloudflare Access recommended. Direct: keep Noyau up to date (noyau update).

Phone and app

The QR code (wizard, Settings, noyau qr) picks the right address for the mode:

  1. public-url if it is set (tunnel, proxy, direct, or VPN with a name);
  2. in VPN mode: the tailscale serve URL, otherwise the VPN address https://100.x.y.z:4243;
  3. otherwise the local network address on the HTTPS port.

The Android / iPhone app pairs with this address ("Server" screen): it requires https:// and an origin without a path, and the page reports it if the URL is not suitable. With a VPN, turn on the VPN on the phone before scanning; with the local certificate, install /noyau-ca.cer on the phone.

Edit this page on GitHub