evertap

Configuration

evertap needs no configuration file. Environment variables change the rest, or fix a setting so that setup cannot change it.

evertap needs no configuration file. evertap setup saves how evertap is reached in its data directory, and everything else has a default. Environment variables change the rest, or fix a setting so that setup cannot change it.

How settings are decided

The mode, the address browsers use, and where the UI listens come from, in order:

How a setting is decided

The first that has a value wins.

  1. Its environment variableEVERTAP_MODE
  2. What setup or Settings savedevertap.db
  3. The mode's default

The variables are EVERTAP_MODE, EVERTAP_PUBLIC_URL, and EVERTAP_LISTEN_HOST, and what setup or Settings saved is in evertap.db in the data directory.

While a variable is set, setup shows its value instead of asking, Settings shows the variable's name, and neither can change it. An empty value counts as unset, as a blank line in an environment file gives. Under systemd, set variables in /etc/evertap/evertap.env, and restart evertap after a change (Settings for the service).

The address of buckets reached from anywhere has no variable: give it in Settings → Change access, or with evertap setup --s3-url.

evertap serve

VariableDefaultWhat it does
EVERTAP_MODEWhat setup savedlocal for This computer only, network for Devices on your network or Behind your own proxy or tunnel (EVERTAP_LISTEN_HOST tells them apart), or cloudflare for the tunnel evertap runs (Choose how evertap is reached). With none saved either, evertap listens on 127.0.0.1 alone.
EVERTAP_PUBLIC_URLDepends on the modeThe address browsers open evertap at, such as https://evertap.example.com, with no path. Sign-in links point there, and evertap answers to its hostname. Set EVERTAP_MODE with it, but not to cloudflare: the tunnel evertap runs has its own address, and evertap does not start with both.
EVERTAP_LISTEN_HOST127.0.0.1The IP address the UI listens on: 127.0.0.1 behind a proxy on this machine, 0.0.0.0 for your home network, or Docker's bridge address behind a proxy run with Docker. 127.77.0.1 is the default in local mode.
EVERTAP_PORT8080The UI's port, in every mode.
EVERTAP_HOSTevertap.localThis machine's name on your network. In network mode, evertap answers to it. The Doctor checks that it resolves when you set it or open evertap at it. evertap does not announce it.
EVERTAP_DATA_DIR~/.local/share/evertapWhere evertap keeps its records, settings, the services' configuration files, and its socket for the CLI on this machine (Security).
EVERTAP_DOCKER_SOCKETFound on its ownDocker's socket. Unset, evertap follows a unix:// DOCKER_HOST, then takes the first that exists of /var/run/docker.sock, ~/.docker/run/docker.sock, ~/.docker/desktop/docker.sock, ~/.orbstack/run/docker.sock, ~/.colima/default/docker.sock, and $XDG_RUNTIME_DIR/docker.sock. evertap talks to Docker over a socket only.
EVERTAP_PREFIXevertapWhat the names of evertap's Docker containers, volumes, and network start with. evertap never touches anything else. Changing it leaves the old ones unused, so set it once, before the first database.
EVERTAP_POSTGRES_PORT6432In network and cloudflare mode, where the PostgreSQL entry listens on 127.0.0.1 for evertap connect. Each entry takes its standard port plus 1000, as a database installed on the machine often holds the standard one on 127.0.0.1. Change it only when something else on the machine holds the port. Connection details stay on 5432.
EVERTAP_MYSQL_PORT4306The same, for MySQL.
EVERTAP_REDIS_PORT7379The same, for Redis.
EVERTAP_GARAGE_PORT4900The same, for buckets.
EVERTAP_PUBLIC_S3_PORT9900Where the entry for buckets reached from anywhere listens, once buckets have an address: beside the UI, or on 127.0.0.1 while the UI listens on every interface. Your proxy sends that address there (Reverse proxies), and so does the tunnel evertap creates, for s3.<your domain> (Cloudflare Tunnel). evertap writes it into the tunnel's routes, so set the tunnel up again if you change it.
EVERTAP_DEMOOff1 serves sample data from memory, starts nothing, and has no sign-in, for trying the UI. Changes are gone when it stops.
EVERTAP_UPDATE_CHECKOn0 stops evertap from asking GitHub once a day whether a newer release is out (What evertap connects to).

In local mode, the entries always listen on 127.77.0.1 at the standard ports, which the EVERTAP_*_PORT variables do not move.

The default address browsers use, without EVERTAP_PUBLIC_URL or a saved one:

  • local: http://ev.internal:8080
  • network, listening on every interface: http://<this machine's address on your network>:8080
  • network, listening on one address: http://<that address>:8080
  • cloudflare: the name you gave the tunnel evertap created, such as https://evertap.example.com, which evertap saves

The CLI

VariableDefaultWhat it does
EVERTAP_API_KEYNoneAn API key from Clients → New API key. The CLI uses it instead of evertap login, for CI and scripts (Connect).
EVERTAP_URLThe address evertap login savedThe address evertap is opened at, used with EVERTAP_API_KEY.
XDG_CONFIG_HOME~/.configevertap login saves the address and token in evertap/config.json under it, and evertap skills install records what it wrote in evertap/skills.json.
NODE_EXTRA_CA_CERTSNoneA file of extra certificate authorities to trust, for a proxy whose certificate comes from your own authority.
CLOUDFLARE_API_TOKENNoneOn the machine running evertap, an API token setup creates or removes the tunnel with, so you need not approve evertap in Cloudflare (Cloudflare Tunnel). evertap does not keep it.

The CLI finds evertap in this order:

  1. With EVERTAP_API_KEY set: EVERTAP_URL, or the address evertap login saved.
  2. On the machine running evertap: its socket in the data directory, which needs no sign-in. Set the same EVERTAP_DATA_DIR as evertap if you changed it.
  3. The address and token evertap login saved.

evertap setup, open, and signin-link use the socket alone. evertap uninstall also reads EVERTAP_DATA_DIR, EVERTAP_PREFIX, and EVERTAP_DOCKER_SOCKET, to find what to remove.

The install script

VariableDefaultWhat it does
EVERTAP_ROLEIt askshost on the machine that runs evertap, or client on a laptop or in CI. Without a terminal, the script needs it, and stops before installing anything if it is not set.
EVERTAP_VERSIONThe latestThe release to install, such as 0.1.0, or develop for the newest build of develop: what the next release will have, before it is released.
EVERTAP_INSTALL_DIR/usr/local/binWhere to put the evertap binary.

Set them on the sh side of the pipe:

curl -fsSL https://evertap.dev/install.sh | EVERTAP_ROLE=client EVERTAP_VERSION=0.1.0 sh
Edit on GitHub

The evertap name and logo are not licensed with the code (section 6 of the license). You may use them to refer to evertap, but not to name or brand your own product or service, or in a way that suggests evertap made or endorses it, without permission.

evertap is an independent project. It is not affiliated with, endorsed, sponsored, supported, or certified by the owners of the software it runs, and it uses their names only to say which software that is.

  • Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.
  • MySQL is a registered trademark of Oracle and/or its affiliates.
  • Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd.
  • Other names, including Garage and Cloudflare, may be trademarks of their respective owners.

On this page