Skip to content

Network

Runtime networking, proxying, and secure exposure.

AlphaBase is local-first. By default, runtime traffic stays on loopback.

Local-Only Default

  • --hostname defaults to 127.0.0.1
  • server/web ports default to random available ports

Use explicit static port when integrating external clients:

Terminal window
alphabase serve --hostname 127.0.0.1 --port 4096

Secure Remote Access

If you bind to 0.0.0.0, protect access:

Terminal window
ALPHABASE_SERVER_PASSWORD=strong-password alphabase serve --hostname 0.0.0.0 --port 4096

Optional transport hardening:

Terminal window
alphabase serve --tls --hostname 0.0.0.0 --port 4096

Proxy Settings

AlphaBase respects standard proxy env vars:

Terminal window
export HTTPS_PROXY=https://proxy.example.com:8080
export HTTP_PROXY=http://proxy.example.com:8080
export NO_PROXY=localhost,127.0.0.1

Enterprise Certificates

For custom CA roots:

Terminal window
export NODE_EXTRA_CA_CERTS=/path/to/ca-cert.pem

CORS

Allow additional frontend origins if needed:

Terminal window
alphabase serve --cors https://app.example.com