βοΈ Global Settings
LibreFolio has a set of system-wide settings that affect all users. These are managed by administrators and stored in the database.
ποΈ Viewing & Editing Settings
π₯οΈ From the UI
- Navigate to Settings (gear icon in the sidebar)
- Click the Global Settings tab (visible only to admin/superuser)
- Click the lock icon next to a setting to unlock it for editing
- Modify the value and the change is saved automatically
Admin Only
Only users with superuser privileges can modify global settings. Regular users see a read-only view.
π» From the CLI
To initialize default settings (creates only missing ones):
π Available Settings
| Key | Type | Default | Description |
|---|---|---|---|
session_ttl_hours |
int | 24 |
JWT token expiration time in hours. After this period, users must log in again. |
enable_registration |
bool | true |
Whether new user registration is allowed. Set to false to prevent new sign-ups. |
require_email_verification |
bool | false |
Whether new users must verify their email before accessing the system. |
max_file_upload_mb |
int | 10 |
Maximum file upload size in megabytes. Applies to all uploads (static resources and broker reports). |
auto_sync_fx_rates |
bool | true |
Enable automatic daily synchronization of FX exchange rates from configured providers. |
auto_sync_prices |
bool | true |
Enable automatic synchronization of asset prices from providers (Yahoo Finance, etc.). |
price_sync_interval_hours |
int | 6 |
How often to sync asset prices, in hours. |
default_currency |
str | EUR |
Default display currency for newly registered users. Users can override this in their personal settings. |
default_language |
str | en |
Default language for newly registered users. Supported: en, it, fr, es. |
ποΈ Categories
Settings are grouped into categories in the UI:
π Session
- β±οΈ
session_ttl_hoursβ Controls how long a login session lasts
π‘οΈ Security
- π
enable_registrationβ Open/close registration - βοΈ
require_email_verificationβ Email verification gate
π€ Sync & Uploads
- π±
auto_sync_fx_ratesβ Automatic FX rate sync - π
auto_sync_pricesβ Automatic asset price sync - β°
price_sync_interval_hoursβ Price sync frequency - π¦
max_file_upload_mbβ File size limit
π Defaults
- π°
default_currencyβ New user default currency - π£οΈ
default_languageβ New user default language
π§ Technical Notes
- ποΈ Settings are stored as key-value pairs in the
global_settingstable - π Values are stored as strings and converted to the appropriate type (
int,bool,str) when read - π On multi-worker startup, settings are initialized with
INSERT ... ON CONFLICT DO NOTHINGto avoid race conditions - β‘ Changes take effect immediately β no server restart required