Skip to content

โš™๏ธ Global Settings

Global settings apply to the whole instance and to every user. They live in the database. Only administrators have the tab to see and change them. They are not secret: the app reads them for every signed-in user (the upload limit, the defaults of the Preferencesโ€ฆ) and any signed-in user can read them through the API.

Some have a variable in the .env file that fixes them or comes first: the Where column of each table says so.


๐Ÿ—‚๏ธ Settings โ€บ Administration

Where: Settings (gear icon in the sidebar) โ€บ Administration, at the right end of the tab bar on a wide screen. Only administrators have the group. Click Administration: it opens Global Settings and a second row of tabs under the first one.

Tab What it is for
โš™๏ธ Global Settings The settings of this page
๐Ÿ‘ฅ Users The accounts, the invitations and the password-reset links: Users & Invitations
๐Ÿ’พ Backup The whole instance in one archive, and its restore: Backup, Restore & Moving
โœ‰๏ธ Email Whether LibreFolio can send emails, and a test email: Email
๐Ÿ›ก๏ธ Security How the instance is configured and what needs your attention: Security, below
  • ๐Ÿ‘ค A user who is not an administrator has neither the group nor its tabs: their Settings end with About, and a link to a tab of the group opens their Profile.
  • ๐Ÿ” Click Administration while one of its tabs is open: that tab stays open.
  • ๐Ÿ”— Each tab has its own address, for a bookmark or a link: /settings/admin/global, /settings/admin/users, /settings/admin/backup, /settings/admin/email, /settings/admin/security; /settings/admin opens the group's first tab. The address follows the open tab, and Back returns to the previous one.
  • ๐Ÿ”ข A number on Security, repeated on Administration, counts the errors and warnings of the security checks.
  • ๐Ÿ“ฑ On a phone, the tabs show their icons only; the title of the page names the open tab.

โœ๏ธ Change a Setting

๐Ÿ”“ 1. Unlock the tab

Where: Settings โ€บ Administration โ€บ Global Settings. The panel groups the settings by category. Click the lock icon (๐Ÿ”’) in the header.

Global Settings

๐Ÿ’พ 2. Edit and save

  • Nothing is written until you click Save next to a setting or Save All in the header. Undo and Undo All bring back the saved values.
  • Reset to Default and Reset All to Defaults fill in the defaults, ready to save.
  • Saved values apply right away, without a restart.
๐Ÿ”’ Locking with unsaved changes โ€” when a dialog asks first

Click the lock with unsaved changes: it asks whether to discard them. Cancel keeps your edits; Discard brings back the saved values and locks the tab.

๐Ÿ’ป Missing settings โ€” recreate them from the command line

Every server start recreates the missing settings with their default value. To do it without a restart, in the server's terminal, with the command-line tool:

pipenv run ./dev.py user init-settings

The values you changed are kept.


๐Ÿ“‹ What Each Setting Does

Where: the named category of the Global Settings tab.

Where Setting Default What it does โ€” when to change it
โณ Session Session Duration 24 hours How long users stay signed in. Shorten it on shared devices. A new value applies from each user's next login.
๐Ÿ›ก๏ธ Security Registration By invitation Who can create an account: Open, By invitation or Closed. Open lets in anyone who reaches the login page: avoid it if the instance is reachable from the internet. Modes, warning and LIBREFOLIO_REGISTRATION: Who Can Sign Up.
๐Ÿ›ก๏ธ Security Require Email Verification Off New accounts must open a link sent to their address before they can sign in; the first account never waits and existing accounts are not affected. It turns on only while email works and LIBREFOLIO_PUBLIC_URL can be used: until then the switch is disabled. See Email Verification in Email.
๐Ÿ”„ Update Job Scheduler Enabled On Turns the automatic price and exchange-rate updates on or off: Market Data Scheduler.
๐Ÿง  Memory Max File Upload Size 10 MB The largest file users can upload, broker reports included. Raise it if a large export is refused.
๐Ÿง  Memory LibreFolio total space (MB) 0, no limit The most megabytes the instance may take: it is the line the space bar of Files is drawn against. 0 means no limit: the bar then shows the disk. The same field is under that bar, in Advanced. LIBREFOLIO_STORAGE_LIMIT_MB, when set, wins and locks it: the field is read-only and says that whoever hosts the instance sets it (Environment Variables). Open the settings, on a refusal of the limit, opens this tab with the row highlighted; the tab stays locked. See The Space Bar.
๐ŸŒ Defaults Default Currency EUR The currency new users report in. Before the first save, LIBREFOLIO_DEFAULT_CURRENCY decides (below).
๐ŸŒ Defaults Default Language en ๐Ÿ‡ฌ๐Ÿ‡ง en, ๐Ÿ‡ฎ๐Ÿ‡น it, ๐Ÿ‡ซ๐Ÿ‡ท fr or ๐Ÿ‡ช๐Ÿ‡ธ es. It is also the language of the emails sent to people who have no account yet. Before the first save, LIBREFOLIO_DEFAULT_LANGUAGE decides (below).
๐ŸŒ Defaults Default Theme auto โ˜€๏ธ light, ๐ŸŒ™ dark or ๐Ÿ–ฅ๏ธ auto, which follows the device. Applies to every user who has not chosen a theme of their own, not only to new users; a change reaches them at their next sign-in.
๐ŸŒ Defaults Default Chart Line Shape segments segments, steps or spline (smooth curve). Applies to every user who has not chosen a line shape of their own; a change reaches them at their next page load.

In the .env file, two variables decide, if set, only until you save the setting for the first time: from the first save, your value wins, even when it is the default again (EUR, en). See Environment Variables.

LIBREFOLIO_DEFAULT_CURRENCY=EUR
LIBREFOLIO_DEFAULT_LANGUAGE=en

New users start from the three defaults: the Welcome setup shows language and currency already pre-filled. Changing a default later does not touch the Preferences of existing users.


๐Ÿšช Who Can Sign Up

Where: Global Settings โ€บ Security โ€บ Registration, or the Users tab, next to Invite: there the mode is saved at once, asking first only for Open.

Mode Who can create an account
๐ŸŒ Open Anyone who reaches the login page, with Register here.
โœ‰๏ธ By invitation (default) Only people with an invitation link. Create one link per person from the Users tab or from the command line, and send it. The login page shows no Register here.
๐Ÿ”’ Closed Nobody, not even with an invitation link. The login page shows no Register here.
  • ๐Ÿ‘‘ The first account of a new instance can always be created, whatever the mode: see the warning below.
  • ๐Ÿ†• A new instance starts By invitation. An instance upgraded from an earlier version keeps the mode it had: one that was Open, the earlier default, stays Open until you change it (Reset to Default proposes By invitation). Once everyone has an account, choose By invitation or Closed.
  • โœ‰๏ธ An invitation link works once, for 7 days, and can make the new account an administrator. With Open, nobody needs one, but a link still gives its role.
  • ๐Ÿ’ป Whatever the mode, the command line can create accounts with user create.
  • ๐Ÿ“ With a user limit, nobody can sign up without an invitation once the instance is full: When the Instance Is Full.
  • ๐Ÿ”’ In the .env file, LIBREFOLIO_REGISTRATION fixes the mode: the field shows it in both places, cannot be changed and says Set on the server by LIBREFOLIO_REGISTRATION: change it there. Reset All to Defaults leaves it alone. See Accounts and Sign-ups.
  • โฌ†๏ธ This setting replaces the Enable Registration switch of earlier versions; the upgrade keeps your choice: a switch that was on becomes Open, one that was off Closed.

๐Ÿ†• A new instance: create your account first

Until the first account exists, anyone who reaches the login page can create it with Register here, whatever the mode, LIBREFOLIO_REGISTRATION included, and that account becomes the administrator. Register as soon as the server is up, before you make it reachable from the internet. From the second account on, the mode applies: with By invitation, the default, the login page no longer shows Register here.

Or create the first administrator in the server's terminal, without a browser (command line):

pipenv run ./dev.py user create <username> <email> <password>

With Docker: docker compose exec librefolio python dev.py user create <username> <email> <password>.

Or set LIBREFOLIO_ADMIN_EMAIL in the .env file before the first start: LibreFolio creates the administrator itself, with a setup link for you, and nobody can register in its place (The Initial Administrator).

๐Ÿ“ข The Open-Registration Warning

While Registration is Open, an administrator who opens LibreFolio at an address outside the local network reads, above the pages of the app:

Registration is open and this instance is reachable from outside your local network: anyone who finds it can create an account.

Its link, Change who can sign up, opens Settings โ€บ Administration โ€บ Global Settings. When LIBREFOLIO_REGISTRATION fixes the mode, the warning names that variable instead and has no link: only the server's configuration (.env file) can change it (Accounts and Sign-ups).

  • ๐Ÿ‘‘ Only administrators see it.
  • ๐ŸŒ Your browser decides, from the name or IP address in the address bar (the port does not matter). Nothing is sent to the server and nothing tests whether the instance is really reachable from the internet. These count as local, with no warning:

    • localhost and every name ending in .localhost;
    • a name without a dot, such as nas, and every name ending in .local, .lan, .home.arpa or .internal;
    • the IPv4 addresses of 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 and 100.64.0.0/10 (carrier-grade NAT, the range where Tailscale numbers its devices);
    • the IPv6 address ::1 and those of fc00::/7 and fe80::/10; an IPv4 address written as IPv6, such as ::ffff:192.168.1.10, counts as the IPv4 address it carries.

    Capitals and a final dot change nothing. Every other address counts as outside, the Tailscale names ending in .ts.net included: Tailscale Funnel can publish them on the internet. - โœ–๏ธ The close button hides it until the page is loaded again. - ๐Ÿ”„ It goes away as soon as the mode is no longer Open: saving Registration updates it at once. - ๐Ÿ›ก๏ธ The Security tab lists the same warning among its findings as long as it holds, even after you have closed it.

How it decides, for developers: The Open-Registration Warning.


๐Ÿ• Market Data Scheduler

The scheduler updates prices and exchange rates on its own, even when nobody is signed in:

  • ๐Ÿ’ฐ Current price refresh โ€” every few minutes, the latest price of each active asset with a price provider.
  • ๐Ÿ“Š History sync โ€” on the days and at the times you choose, the daily prices of those assets and the rates of every FX pair with a provider, over at least the Lookback horizon, to fill the gaps. If the last saved price or rate is older, it goes back to that day, up to a year at most; an asset with no saved price at all gets the horizon only: the scheduler never downloads a whole history. Pairs with manual rates only are skipped.

Server off or asleep at the sync time: the missed sync runs as soon as the server is back, without waiting for the next time. A server off for weeks fills its whole gap.

โš™๏ธ Configure the schedule

Where: Global Settings โ€บ Update Job โ€บ Schedule Configuration โ€บ Configureโ€ฆ, with the tab unlocked. The dialog has its own Save button.

Scheduler Configuration Modal
Field Default What it sets
Timezone UTC The timezone of the times and days below; next to it, the server's UTC clock. Before the first save of the schedule, LIBREFOLIO_DEFAULT_TIMEZONE in the .env file decides, if set; from the first save, your value wins, even when it is UTC again (Environment Variables).
Refresh every 10 minutes How often current prices are refreshed, from 1 to 1440 minutes.
Sync times 06:00, 23:00 When the history sync runs; Add time adds a slot.
Sync days Mon to Sat The days of the history sync.
Lookback horizon 14 days How many past days each sync checks at least, from 1 to 365. It goes further back, up to a year, when the last saved price or rate is older.

Keep at least one time and one day. A sync after the markets close (for example 22:00) gets the most complete data.

๐ŸŒ Changing the timezone โ€” the jobs move in time

Times and days keep their values but count in the new timezone: the jobs run at another moment. They also follow the timezone's daylight saving time: 06:00 in Europe/Rome runs at 05:00 UTC in winter and at 04:00 UTC in summer.

๐Ÿ“œ Read the scheduler log

Where: Global Settings โ€บ Update Job โ€บ Scheduler Status. Only administrators read the status and the log.

The row shows the last current price refresh, with a dot for its result. While a retry is pending, an extra line gives its time: Failed: next attempt at โ€ฆ after a refresh that could not finish, otherwise Paused items retried at โ€ฆ for the prices deferred because their provider was paused. Click the row (or Detailsโ€ฆ): the Scheduler Execution Log opens.

Scheduler Log Modal
  • Each entry is one run: job, time, duration and how many items succeeded. ๐ŸŸข OK: all of them, or nothing to do; ๐ŸŸก Partial: some failed, or were deferred because their provider paused after too many requests; ๐Ÿ”ด Error: none succeeded and none was deferred.
  • Click an entry: each asset or FX pair, its provider and the prices changed (Delta). Hover an error to read it in full; double-click (long-press on a phone) to copy it.
  • A deferred item shows a pause icon and Deferred: provider paused: hover the label to read the provider's message. The entry counts the deferred items with โธ, next to โœ“ and โœ— (for example 3/5 โœ“ ยท 1 โธ ยท 1 โœ—), and Retry at in the header gives the time of the retry.
  • Filter by job, status or period, from the last hour to the last 30 days. Only the most recent runs are kept.

โธ๏ธ Provider Pauses

When a price or rate provider (Yahoo Finance, the European Central Bankโ€ฆ) answers ยซtoo many requestsยป (HTTP 429), LibreFolio pauses it: until the pause ends, no request reaches it, neither from the market data scheduler nor from a user. A pause holds for every user and every job of the server.

The pauses are on by default. LIBREFOLIO_PROVIDER_COOLDOWN_BASE_SECONDS=0 turns them off, as before release 1.3.

Where: in the .env file (or in the container's environment). These are the defaults:

LIBREFOLIO_PROVIDER_COOLDOWN_BASE_SECONDS=60
LIBREFOLIO_PROVIDER_COOLDOWN_MAX_SECONDS=3600
Variable Default What it does
LIBREFOLIO_PROVIDER_COOLDOWN_BASE_SECONDS 60 The first pause, in seconds, doubled at each refusal in a row: a whole number from 0 to 86400 (one day). 0 turns the pauses off.
LIBREFOLIO_PROVIDER_COOLDOWN_MAX_SECONDS 3600 The longest pause the doubling reaches, in seconds: a whole number from 1 to 86400, not below the first pause while the pauses are on. A provider's Retry-After may still ask for more, up to one day.

Restart LibreFolio. With Docker Compose, run docker compose up -d.

  • A value LibreFolio cannot use does not stop the server: the log has an error (In the Log) and both defaults apply, 60 and 3600: the pauses stay on.
  • With the pauses off, every request goes to the provider again; the scheduler still counts a refused request as deferred (below).

โฑ๏ธ How Long a Pause Lasts

  • The first refusal pauses the provider for LIBREFOLIO_PROVIDER_COOLDOWN_BASE_SECONDS, 60 seconds by default.
  • Each refusal in a row doubles the pause, up to LIBREFOLIO_PROVIDER_COOLDOWN_MAX_SECONDS. With the defaults: 2 minutes, then 4, 8, 16 and 32, then an hour at each further refusal. Requests refused together count as one refusal.
  • A Retry-After, when the provider sends one, is the shortest pause LibreFolio takes: honoured even beyond the longest pause, up to one day.
  • A random extra of up to 10 % is added to each pause, never past one day.
  • When a pause ends, one request goes through to try the provider; the others still count as paused until it has an outcome, a minute at most. An answer ends the series: the next refusal starts again from the first pause. The same goes for a refusal that comes, from the end of the previous pause, after a gap longer than the longest pause.
  • A pause holds for the whole provider, except with the CSS Scraper: a site that refuses pauses only the pages of that site; the other sites are still read.

๐Ÿ‘€ Who Waits, and What You See

Where During a pause
๐Ÿ• Market data scheduler The assets and FX pairs of a paused provider are deferred: neither updated nor failed, and their job is Partial. The job runs again when the first of those pauses ends, or at its regular time if that comes first. How Scheduler Status and the Scheduler Execution Log show it: ยซRead the scheduler logยป, above.
๐Ÿ’ฐ Live prices, in the Assets list and on an asset's page The last stored price stays, with no new message. When every asset the page asks about has its provider paused, the page asks again by itself only once the first of those pauses is over; while one provider still answers, the refresh goes on and LibreFolio does not call the paused ones. After a refresh that fails, the next one waits twice as long, and so on up to ten minutes, until one works again.
๐Ÿ”Œ Test Configuration, in the asset dialog โš ๏ธ Paused for too many requests until โ€ฆ, with the time the pause ends; the test still passes. See Connect a price provider.
๐Ÿ”Ž Asset search A paused provider returns no result until its pause ends; the others answer as usual.
๐Ÿ’ฑ Exchange rates A paused provider counts as a route that failed: a pair with another route gets its rate there, as when a central bank does not answer (Provider Configuration). Otherwise the scheduler defers the pair, as it does an asset.

๐Ÿ’ค In Memory

  • Each server process keeps its own pauses in memory. A restart forgets them, a deploy included. With several server processes (--workers N), each one learns a pause from a refusal of its own; the Docker image runs one.

๐Ÿ“‹ In the Log

Level The log says When
โš ๏ธ warning Provider refused for too many requests: paused, with domain (asset or fx), provider, scope (the site, with the CSS Scraper), wait_s, the seconds of pause ahead, and retry_after, the wait the provider asked for, if any A provider refused a request
โ„น๏ธ info Provider answering again after a pause, with refusals, the refusals in a row before it The first answer after a pause
โŒ error Provider pause settings cannot be used: the defaults apply, with variable, code (PROVIDER_COOLDOWN_BASE_INVALID or PROVIDER_COOLDOWN_MAX_INVALID) and reason One of the two variables has a value that cannot be used: once per server process, the first time LibreFolio is about to call a provider

At DEBUG level, Provider call skipped: paused after too many requests, with wait_s, marks each request a pause kept from being sent. The scheduler's lines, Scheduler: current-price refresh and Scheduler: history sync, give the deferred items in deferred, with retry_at.


๐Ÿ—„๏ธ Server Caches

LibreFolio keeps recent provider answers and computed results in memory.

Where: Global Settings โ€บ Memory โ€บ Cache Status, at the end of the category. The panel lists each cache with Size / Max and TTL (how long an entry is kept). Click a column header to sort; Refresh updates the numbers.

Server caches panel in Global Settings (Memory category)

The panel shows its numbers even with the tab locked. With the tab unlocked, Clear empties one cache and Clear all all of them, to force fresh data without a restart. A restart empties every cache too.

Clearing a cache slows down the next fetch

Both actions ask for confirmation first. After a clear, the next request for that data goes back to the providers: expect a slowdown similar to a server restart until the caches fill up again.

๐Ÿงต Several workers โ€” when the server runs with --workers

Each worker process has its own caches. The panel shows and clears those of the worker that answered; restart the server to empty them all.


๐Ÿ›ก๏ธ Security

Where: Settings โ€บ Administration โ€บ Security. Only administrators have the tab. It checks how the instance is configured and lists first what needs your attention. It is not the ๐Ÿ›ก๏ธ Security category of Global Settings, which holds Registration and Require Email Verification.

๐Ÿšฆ What It Lists

Each finding says what is wrong, with an icon and a colour: โŒ an error, โš ๏ธ a warning or โ„น๏ธ an information. Errors first, then warnings, then information; at equal severity, the order of this table.

Check A finding when Its link
Session signing key โ„น๏ธ The key is random: every restart signs everyone out; set JWT_SECRET to stay signed in. โš ๏ธ The key is shorter than 32 characters. โŒ Its JWT_SECRET_FILE cannot be read โ€”
Secrets set twice โš ๏ธ A secret is set both directly and through its _FILE variable: the direct value wins โ€”
Instance key โŒ It cannot be used. โš ๏ธ Its folder or its file is open to other users โ€”
Session cookie โš ๏ธ SESSION_COOKIE_SECURE=never: the cookie also travels over plain HTTP โ€”
Visitor's address โš ๏ธ Since the start, requests came through a reverse proxy that LibreFolio does not trust: the limits per visitor's address do not apply to them. โ„น๏ธ Since the start, forwarding headers from a public address were ignored. What to do: The Visitor's Address โ€”
Log level โ„น๏ธ DEBUG or TRACE โ€”
Test mode โŒ LIBREFOLIO_TEST_MODE is on outside LibreFolio's test runs: data providers that exist only for the tests are served and the data are kept in the test data folder โ€”
Upload limit of a restore โŒ LIBREFOLIO_BACKUP_MAX_UPLOAD_MB cannot be used (a whole number of megabytes, 0 for no limit): restore uploads are refused until it is fixed. Passed with a limit, such as A restore accepts archives of up to 500 MB., or with none โ€”
Unpacked size of a restore โŒ LIBREFOLIO_BACKUP_MAX_RESTORE_MB cannot be used (a whole number of megabytes, 0 for no limit): restore checks are refused until it is fixed. Passed with a limit, such as A restore check accepts archives that unpack to up to 4000 MB., or with none โ€”
Failed sign-ins โš ๏ธ The limit is off: LIBREFOLIO_LOGIN_LIMIT=off โ€”
Email server โŒ A LIBREFOLIO_SMTP_* value cannot be used: email stays off until it is fixed Open the Email tab
Email encryption โš ๏ธ Emails, their links and the SMTP password travel unencrypted to a server outside your local network Open the Email tab
Links in emails โ„น๏ธ Email works, but LIBREFOLIO_PUBLIC_URL is not set. โš ๏ธ LIBREFOLIO_PUBLIC_URL cannot be used at the start of a link Open the Email tab
Plugin secrets โŒ Instance-wide plugin secrets cannot be read with the instance key Open the plugin settings, in Settings โ€บ Plugins
Open registration, checked by your browser โš ๏ธ Registration is Open and you reached LibreFolio at an address outside your local network, as for the warning above the pages Change who can sign up, in Global Settings. None when LIBREFOLIO_REGISTRATION sets the mode: the finding names that variable instead
A blocked script, checked by your browser โš ๏ธ A script that LibreFolio did not send, added by a proxy, a CDN or a browser extension, was blocked in this browser tab: the finding names its sources. It goes when you close the tab. Not fixed on the server, but in the proxy, the CDN or the extension: A Script You Did Not Send โ€”

Every row has a help button, chosen by who can solve the check:

  • ๐Ÿ“– Guide: you can solve it alone, on the server. The button, shown on passed checks too, opens the page of this guide that explains that check, in a new tab and in your language when it is translated.

A check without a page of its own and without support has no button.

The findings without a link are fixed in the server's configuration (.env file) and need a restart: what to do for each one is in the table of ยซStartup Checksยป in Configuration, where the server's log reports the same checks.

๐Ÿ”ข The Number on the Tab

Security shows how many errors and warnings it lists; Administration shows the same number, visible from every tab of Settings. Information is listed but never counted: with information only there is no number, and the tab does not say Nothing needs your attention. either.

Outside Settings, the same count follows you on every page, as a dot on the connection line at the bottom of the sidebar: red with at least one error, amber with warnings only, none with information only. Click the line: after its reason, the details link to this tab with the count, for example 2 security warnings, errors included. On a phone, the menu button carries the dot too. What it looks like: Security Warnings for Administrators.

๐Ÿ”„ When It Checks

LibreFolio reads the checks once, as soon as it opens in your browser, whatever the page: the sidebar's connection line asks for them, so the dot and the number on the tab are already there when you open Settings. If that read fails, opening Settings tries again. The checks stay the same while you use the app: after changing the server's configuration (.env file) and restarting, click Check again, at the top of the tab, or reload the page. The open-registration finding follows Registration at once: saving it in Global Settings updates the list, the number and the dot.

  • โณ Until the first answer, the tab shows placeholder rows.
  • โš ๏ธ When the checks cannot be read, the tab says The security checks could not be loaded., with Try again. After a Check again that fails, the last results stay listed below.

โœ… Passed Checks

With no finding, the tab says Nothing needs your attention. Below the findings, a folded section, N checks passed, lists the passed checks, each with its own sentence (for example Sessions are signed with a key set by the administrator.): click it to unfold it. Email that is off, or sent unencrypted to a server of your own network, counts as passed and says so there.