Skip to content
CliprWiki

Installation

Requirements and first setup with cliprctl setup.

Requirements

  • A Linux machine that is always on, with at least 2 GB of RAM (text recognition and password hashing briefly need peaks).
  • Docker with the Compose plugin (docker compose version works).
  • bash version 4 or later and openssl for cliprctl; curl is optional (checks via HTTPS).
  • git to download Clipr and update it later.
  • A hostname Clipr can be reached at: a public domain or a name in your home network (e.g. that of your NAS).

First setup with cliprctl

git clone https://github.com/Elmontag/Clipr.git
cd Clipr
scripts/cliprctl setup

The assistant asks for what it needs in seven steps and suggests sensible values. Enter accepts the suggestion.

Step What happens
1. Address and TLS Hostname, type of certificate (internal for home networks or Let's Encrypt), ports. Ports already in use are reported.
2. Key CLIPR_SECRET_KEY is generated randomly – either in .env or as a Docker secret file. If data already exists, a new key is never generated.
3. First account Email address or username of the first admin and a random initial password.
4. Registration and email Who may create accounts; if needed, the mail server for confirmations and password resets.
5. Sign-in Two-factor requirement, time zone.
6. Optional components Proton Mail Bridge, wiki.
7. Summary .env is only written after you confirm (mode 600). Clipr can then be built and started right away.

At the end the assistant shows the initial password. Sign in at https://<your-hostname> and change it in the app. Then remove the initial password from .env:

scripts/cliprctl config set CLIPR_ADMIN_PASSWORD ""

Back up the key: copy CLIPR_SECRET_KEY to a safe place outside the server now. It is in .env (or in secrets/clipr_secret_key). See Backups.

If an .env already exists, cliprctl setup opens the settings menu. To run the questionnaire again use scripts/cliprctl setup --wizard.

Certificates: home network or public domain

Scenario Settings Note
Public domain CLIPR_DOMAIN=clipr.example.com, CLIPR_TLS=you@example.com Ports 80 and 443 must be reachable from the internet; Let's Encrypt issues and renews the certificate automatically.
Home network / NAS CLIPR_DOMAIN=nas.home.arpa, CLIPR_TLS=internal Caddy creates its own certificate authority. For browsers and phones (also for installing the app) to trust it, install the root certificate on the devices (see below).
Ports in use additionally CLIPR_HTTPS_PORT=8443 Then open https://<hostname>:8443. In this case also set CLIPR_PUBLIC_URL=https://<hostname>:8443 so links in emails are correct.

Export the root certificate of the internal certificate authority:

docker compose cp caddy:/data/caddy/pki/authorities/local/root.crt ./clipr-root.crt

Without the assistant

If you prefer to work by hand:

cp .env.example .env
chmod 600 .env
# edit .env: CLIPR_DOMAIN, CLIPR_TLS, CLIPR_SECRET_KEY (openssl rand -base64 48), CLIPR_ADMIN_USER, CLIPR_ADMIN_PASSWORD
docker compose up -d --build
docker compose logs -f app      # wait for "Clipr … gestartet"

All settings are explained on the Configuration page.

Next steps