๐ก๏ธ Admin Manual
For the people who install and run LibreFolio. Almost everything is done in one of three places: from the command line, in the .env file (environment variables) or in the app's Settings โบ Administration tabs.
๐ Guides
๐ณ Deployment & Exposure
- ๐ฆ Host Installation: Python, Node.js and Pipenv directly on the host machine.
- ๐ณ Advanced Docker: Docker Compose, volumes and file ownership through GID/UID.
- ๐ Expose Securely: your private instance with Tailscale, no router port opened: a VPN for your own devices or a subnet router for your whole home network.
- ๐ Expose Securely: Public Access with Funnel: a public HTTPS address with Tailscale Funnel, one for LibreFolio or one for each service with Docker.
- ๐ Check Connection Security: the checklist, the indicator, the server's view and the session cookie; what to do when a check fails.
- ๐งฐ Check Connection Security: Behind a Reverse Proxy: Nginx, Caddy, Traefik or Tailscale: the headers to send, the trusted proxy and the visitor's address.
โ๏ธ System Configuration
- ๐ Environment Variables: the
.envfile and the main variables (PORT,JWT_SECRET,LIBREFOLIO_DATA_DIR, etc.), with the precedence between the values.- ๐ Configuration: Secrets and Plugin Settings: secrets read from files (such as Docker secrets), the instance key, the settings and API keys of the plugins.
- ๐ก๏ธ Configuration: Checks and Protections: the checks at startup, the Content-Security-Policy, the frame protection and how the server stops.
- ๐ฅ Configuration: Accounts and Asset Search: who can sign up, limits on accounts and failed sign-ins, the initial administrator, the order of the price providers.
- ๐ง Email: optional SMTP: the variables, examples for the most common servers, the Email tab of Settings โบ Administration and the test email.
- ๐ฌ Email: Links and Messages: invitations and password resets, forgotten passwords and their limits, email verification, the notice of an email change.
- ๐ ๏ธ Email: When It Does Not Work: the errors, what the log says, SMTP security notes.
- โ๏ธ Global Settings: the runtime settings (session TTL, upload limits, market data sync intervals), the Administration tabs and the Security checks of the instance.
- ๐ฅ Users & Invitations: the app's Users tab: invitations, password-reset links, administrator rights, deactivation and deletion.
๐งน Maintenance & Operations
- ๐ ๏ธ CLI Admin Tools: the
dev.pyscript for user management, database upgrades and instance backups. - ๐พ Backup, Restore & Moving: one archive with the whole instance, from Settings โบ Administration โบ Backup or from the command line: make it, check it, restore it, move LibreFolio between two installations.
- ๐ Filesystem Structure: where databases, logs, uploads and temporary folders live, and how to perform backups.
๐ Update Notifications
When an administrator signs in, LibreFolio checks GitHub for a newer stable release. If there is one, the New version available window shows your version and the latest side by side, with the How to update (updating guide) and Release notes on GitHub links.
| Button | Effect |
|---|---|
| Remind me later | Closes the window until a later sign-in. |
| Skip this version | No automatic prompt for that version; an even newer one will be announced. |
- A release is announced only when its Docker image can be downloaded; the window waits until no other window or guide is open.
- Without internet access the check fails silently: no error, no banner.
- To check right away: Check for updates in the changelog. It reports errors, and skipped versions too.
๐ฅ Other users โ when someone who is not an administrator checks
For users who are not administrators, no check runs at sign-in. If one of them runs Check for updates and a newer release exists, the Update available โ contact an administrator window lists the administrators, with their email addresses when available.
๐ Keep Users Signed In After a Restart
JWT_SECRET is the key that signs every login session.
- Not set (the default): a new random key at every start, so everyone signs in again after a restart or an update.
- Set: sessions survive restarts. Set it also when several LibreFolio servers share the same users behind a load balancer.
To set it:
-
Generate a key. From a terminal, on the host:
You get two lines: the first,
JWT_SECRET=โฆ, is ready to paste into.env; the second is the key alone, for when you keep it in a file (JWT_SECRET_FILE, below). Without Python on the host, run the command in the container: -
Paste the first line into LibreFolio's
.envfile: -
Restart LibreFolio. With Docker Compose, run
docker compose up -d.From then on, a restart signs nobody out.
๐ Keep the key secret
Whoever knows it can forge a session.
๐ณ Keep the key out of .env โ JWT_SECRET_FILE
Save the key in a file, such as a Docker secret, and set JWT_SECRET_FILE to its path instead of JWT_SECRET: for example JWT_SECRET_FILE=/run/secrets/jwt_secret. The rules and a Docker Compose example are in Secrets.
- The workers of a single
./dev.py server --workers โฆshare one key on their own. - How long a session lasts is the Session Duration in Global Settings.
- Details for developers: Security Architecture.