miniflux.1 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. .\" Manpage for miniflux.
  2. .TH "MINIFLUX" "1" "January 5, 2026" "\ \&" "\ \&"
  3. .SH NAME
  4. miniflux \- Minimalist and opinionated feed reader
  5. .SH SYNOPSIS
  6. \fBminiflux\fR [\fBoptions\fR]
  7. .SH DESCRIPTION
  8. \fBminiflux\fR is a minimalist and opinionated feed reader.
  9. .SH OPTIONS
  10. .PP
  11. .B \-h, \-help
  12. .RS 4
  13. Show usage information and exit\&.
  14. .RE
  15. .PP
  16. .B \-config-dump
  17. .RS 4
  18. Print parsed configuration values. This will include sensitive information like passwords\&.
  19. .RE
  20. .PP
  21. .B \-c /path/to/miniflux.conf
  22. .RS 4
  23. Load configuration file\&.
  24. .RE
  25. .PP
  26. .B \-config-file /path/to/miniflux.conf
  27. .RS 4
  28. Load configuration file\&.
  29. .RE
  30. .PP
  31. .B \-create-admin
  32. .RS 4
  33. Create an admin user from an interactive terminal\&.
  34. .RE
  35. .PP
  36. .B \-debug
  37. .RS 4
  38. Set log level to debug\&.
  39. .RE
  40. .PP
  41. .B \-export-user-feeds <username>
  42. .RS 4
  43. Export user feeds (provide the username as argument)\&.
  44. .br
  45. Example:
  46. .EX
  47. miniflux -export-user-feeds someone > feeds.xml
  48. .EE
  49. .RE
  50. .PP
  51. .B \-flush-sessions
  52. .RS 4
  53. Flush all sessions (disconnect users)\&.
  54. .RE
  55. .PP
  56. .B \-healthcheck <endpoint>
  57. .RS 4
  58. Perform a health check on the given endpoint\&.
  59. .br
  60. The value "auto" tries to guess the health check endpoint\&.
  61. .RE
  62. .PP
  63. .B \-i
  64. .RS 4
  65. Show build information\&.
  66. .RE
  67. .PP
  68. .B \-info
  69. .RS 4
  70. Show build information\&.
  71. .RE
  72. .PP
  73. .B \-migrate
  74. .RS 4
  75. Run SQL migrations\&.
  76. .RE
  77. .PP
  78. .B \-refresh-feeds
  79. .RS 4
  80. Refresh a batch of feeds and exit\&.
  81. .RE
  82. .PP
  83. .B \-reset-feed-errors
  84. .RS 4
  85. Clear all feed errors for all users\&.
  86. .RE
  87. .PP
  88. .B \-reset-feed-next-check-at
  89. .RS 4
  90. Reset the next check time for all feeds\&.
  91. .RE
  92. .PP
  93. .B \-reset-password
  94. .RS 4
  95. Reset user password\&.
  96. .RE
  97. .PP
  98. .B \-run-cleanup-tasks
  99. .RS 4
  100. Run cleanup tasks (delete old sessions and archive old entries)\&.
  101. .RE
  102. .PP
  103. .B \-v
  104. .RS 4
  105. Show application version\&.
  106. .RE
  107. .PP
  108. .B \-version
  109. .RS 4
  110. Show application version\&.
  111. .RE
  112. .SH CONFIGURATION FILE
  113. The configuration file is a text file that follows these rules:
  114. .LP
  115. - Miniflux expects each line to be in KEY=VALUE format.
  116. .br
  117. - Lines beginning with # are processed as comments and ignored.
  118. .br
  119. - Blank lines are ignored.
  120. .br
  121. - There is no variable interpolation.
  122. .PP
  123. Keys are the same as the environment variables described below\&.
  124. .br
  125. Environment variables override the values defined in the config file\&.
  126. .SH ENVIRONMENT
  127. .PP
  128. Boolean options accept the following values (case-insensitive): 1/0, yes/no, true/false, on/off\&.
  129. .br
  130. For variables ending in \fB_FILE\fR, the value is a path to a file that contains the corresponding secret value\&.
  131. .TP
  132. .B ADMIN_PASSWORD
  133. Admin user password, used only if \fBCREATE_ADMIN\fR is enabled\&.
  134. .br
  135. Default is empty\&.
  136. .TP
  137. .B ADMIN_PASSWORD_FILE
  138. Path to a secret key exposed as a file, it should contain the \fBADMIN_PASSWORD\fR value\&.
  139. .br
  140. Default is empty\&.
  141. .TP
  142. .B ADMIN_USERNAME
  143. Admin user login, used only if \fBCREATE_ADMIN\fR is enabled\&.
  144. .br
  145. Default is empty\&.
  146. .TP
  147. .B ADMIN_USERNAME_FILE
  148. Path to a secret key exposed as a file, it should contain the \fBADMIN_USERNAME\fR value\&.
  149. .br
  150. Default is empty\&.
  151. .TP
  152. .B AUTH_PROXY_HEADER
  153. Proxy authentication HTTP header\&.
  154. .br
  155. The option \fBTRUSTED_REVERSE_PROXY_NETWORKS\fR must be configured to allow the proxy to authenticate users\&.
  156. .br
  157. Default is empty.
  158. .TP
  159. .B AUTH_PROXY_USER_CREATION
  160. Set to 1 to create users based on proxy authentication information\&.
  161. .br
  162. Disabled by default\&.
  163. .TP
  164. .B BASE_URL
  165. Base URL to generate HTML links and base path for cookies\&.
  166. .br
  167. Default is http://localhost\&.
  168. .TP
  169. .B BATCH_SIZE
  170. Number of feeds to send to the queue for each interval\&.
  171. .br
  172. Default is 100 feeds\&.
  173. .TP
  174. .B CERT_DOMAIN
  175. Use Let's Encrypt to get automatically a certificate for this domain\&.
  176. .br
  177. Default is empty\&.
  178. .TP
  179. .B CERT_FILE
  180. Path to SSL certificate\&.
  181. .br
  182. Default is empty\&.
  183. .TP
  184. .B CLEANUP_ARCHIVE_BATCH_SIZE
  185. Number of entries to archive for each job interval\&.
  186. .br
  187. Default is 10000 entries\&.
  188. .TP
  189. .B CLEANUP_ARCHIVE_READ_DAYS
  190. Number of days after marking read entries as removed\&.
  191. .br
  192. Set to -1 to keep all read entries.
  193. .br
  194. Default is 60 days\&.
  195. .TP
  196. .B CLEANUP_ARCHIVE_UNREAD_DAYS
  197. Number of days after marking unread entries as removed\&.
  198. .br
  199. Set to -1 to keep all unread entries.
  200. .br
  201. Default is 180 days\&.
  202. .TP
  203. .B CLEANUP_FREQUENCY_HOURS
  204. Cleanup job frequency. Remove old sessions and archive entries\&.
  205. .br
  206. Default is 24 hours\&.
  207. .TP
  208. .B CLEANUP_REMOVE_SESSIONS_DAYS
  209. Number of days after removing old sessions from the database\&.
  210. .br
  211. Default is 30 days\&.
  212. .TP
  213. .B CREATE_ADMIN
  214. Set to 1 to create an admin user from environment variables\&.
  215. .br
  216. Disabled by default\&.
  217. .TP
  218. .B DATABASE_CONNECTION_LIFETIME
  219. Set the maximum amount of time a connection may be reused\&.
  220. .br
  221. Default is 5 minutes\&.
  222. .TP
  223. .B DATABASE_MAX_CONNS
  224. Maximum number of database connections\&.
  225. .br
  226. Default is 20\&.
  227. .TP
  228. .B DATABASE_MIN_CONNS
  229. Minimum number of database connections\&.
  230. .br
  231. Default is 1\&.
  232. .TP
  233. .B DATABASE_URL
  234. PostgreSQL connection parameters\&.
  235. .br
  236. Default is "user=postgres password=postgres dbname=miniflux2 sslmode=disable"\&.
  237. .TP
  238. .B DATABASE_URL_FILE
  239. Path to a secret key exposed as a file, it should contain the \fBDATABASE_URL\fR value\&.
  240. .br
  241. Default is empty\&.
  242. .TP
  243. .B DISABLE_API
  244. Disable miniflux's API\&.
  245. .br
  246. Default is false (The API is enabled)\&.
  247. .TP
  248. .B DISABLE_HSTS
  249. Disable HTTP Strict Transport Security header if \fBHTTPS\fR is set\&.
  250. .br
  251. Default is false (The HSTS is enabled)\&.
  252. .TP
  253. .B DISABLE_HTTP_SERVICE
  254. Set the value to 1 to disable the HTTP service\&.
  255. .br
  256. Default is false (The HTTP service is enabled)\&.
  257. .TP
  258. .B DISABLE_LOCAL_AUTH
  259. Disable local authentication\&.
  260. .br
  261. When set to true, the username/password form is hidden from the login screen, and the
  262. options to change username/password or unlink OAuth2 account are hidden from the settings page.
  263. .br
  264. Default is false\&.
  265. .TP
  266. .B DISABLE_SCHEDULER_SERVICE
  267. Set the value to 1 to disable the internal scheduler service\&.
  268. .br
  269. Default is false (The internal scheduler service is enabled)\&.
  270. .TP
  271. .B FETCH_BILIBILI_WATCH_TIME
  272. Set the value to 1 to scrape video duration from Bilibili website and
  273. use it as a reading time\&.
  274. .br
  275. Disabled by default\&.
  276. .TP
  277. .B FETCH_NEBULA_WATCH_TIME
  278. Set the value to 1 to scrape video duration from Nebula website and
  279. use it as a reading time\&.
  280. .br
  281. Disabled by default\&.
  282. .TP
  283. .B FETCH_ODYSEE_WATCH_TIME
  284. Set the value to 1 to scrape video duration from Odysee website and
  285. use it as a reading time\&.
  286. .br
  287. Disabled by default\&.
  288. .TP
  289. .B FETCH_YOUTUBE_WATCH_TIME
  290. Set the value to 1 to scrape video duration from YouTube website and
  291. use it as a reading time\&.
  292. .br
  293. Disabled by default\&.
  294. .TP
  295. .B FILTER_ENTRY_MAX_AGE_DAYS
  296. Ignore new entries older than the given number of days\&.
  297. .br
  298. Set to 7 to fetch only entries from the last 7 days\&.
  299. .br
  300. Default is 0 (disabled)\&.
  301. .TP
  302. .B FORCE_REFRESH_INTERVAL
  303. The minimum interval for manual refresh\&.
  304. .br
  305. Default is 30 minutes\&.
  306. .TP
  307. .B HTTP_CLIENT_MAX_BODY_SIZE
  308. Maximum body size for HTTP requests in Mebibyte (MiB)\&.
  309. .br
  310. Default is 15 MiB\&.
  311. .TP
  312. .B HTTP_CLIENT_PROXIES
  313. Enable proxy rotation for outgoing requests by providing a comma-separated list of proxy URLs\&.
  314. .br
  315. Default is empty\&.
  316. .TP
  317. .B HTTP_CLIENT_PROXY
  318. Proxy URL to use when the "Fetch via proxy" feed option is enabled\&.
  319. .br
  320. Default is empty\&.
  321. .TP
  322. .B HTTP_CLIENT_TIMEOUT
  323. Time limit in seconds before the HTTP client cancels the request\&.
  324. .br
  325. Default is 20 seconds\&.
  326. .TP
  327. .B HTTP_CLIENT_USER_AGENT
  328. The default User-Agent header to use for the HTTP client. Can be overridden in per-feed settings\&.
  329. .br
  330. When empty, Miniflux uses a default User-Agent that includes the Miniflux version\&.
  331. .br
  332. Default is empty.
  333. .TP
  334. .B HTTP_SERVER_TIMEOUT
  335. Read, write, and idle timeout in seconds for the HTTP server\&.
  336. .br
  337. Default is 300 seconds\&.
  338. .TP
  339. .B HTTPS
  340. Forces cookies to use secure flag and send HSTS header\&.
  341. .br
  342. Default is disabled\&.
  343. .TP
  344. .B ICON_FETCH_ALLOW_PRIVATE_NETWORKS
  345. Set to 1 to allow downloading favicons that resolve to private or loopback networks\&.
  346. .br
  347. Disabled by default, private networks are refused\&.
  348. .TP
  349. .B INVIDIOUS_INSTANCE
  350. Set a custom invidious instance to use\&.
  351. .br
  352. Default is yewtu.be\&.
  353. .TP
  354. .B KEY_FILE
  355. Path to SSL private key\&.
  356. .br
  357. Default is empty\&.
  358. .TP
  359. .B LISTEN_ADDR
  360. Address to listen on. Use absolute path to listen on Unix socket (/var/run/miniflux.sock)\&.
  361. .br
  362. Multiple addresses can be specified, separated by commas. For example: 127.0.0.1:8080, 127.0.0.1:8081\&.
  363. .br
  364. Default is 127.0.0.1:8080\&.
  365. .TP
  366. .B LOG_DATE_TIME
  367. Display the date and time in log messages\&.
  368. .br
  369. Disabled by default\&.
  370. .TP
  371. .B LOG_FILE
  372. Supported values are "stderr", "stdout", or a file name\&.
  373. .br
  374. Default is "stderr"\&.
  375. .TP
  376. .B LOG_FORMAT
  377. Supported log formats are "text" or "json"\&.
  378. .br
  379. Default is "text"\&.
  380. .TP
  381. .B LOG_LEVEL
  382. Supported values are "debug", "info", "warning", or "error"\&.
  383. .br
  384. Default is "info"\&.
  385. .TP
  386. .B MAINTENANCE_MESSAGE
  387. Define a custom maintenance message\&.
  388. .br
  389. Default is "Miniflux is currently under maintenance"\&.
  390. .TP
  391. .B MAINTENANCE_MODE
  392. Set to 1 to enable maintenance mode\&.
  393. .br
  394. Disabled by default\&.
  395. .TP
  396. .B MEDIA_PROXY_CUSTOM_URL
  397. Sets an external server to proxy media through\&.
  398. .br
  399. Default is empty, Miniflux does the proxying\&.
  400. .TP
  401. .B MEDIA_PROXY_HTTP_CLIENT_TIMEOUT
  402. Time limit in seconds before the media proxy HTTP client cancels the request\&.
  403. .br
  404. Default is 120 seconds\&.
  405. .TP
  406. .B MEDIA_PROXY_ALLOW_PRIVATE_NETWORKS
  407. Set to 1 to allow proxying media that resolves to private or loopback networks\&.
  408. .br
  409. Disabled by default, private networks are refused\&.
  410. .TP
  411. .B MEDIA_PROXY_RESOURCE_TYPES
  412. A comma-separated list of media types to proxify. Supported values are: image, audio, video\&.
  413. .br
  414. Default is image\&.
  415. .TP
  416. .B MEDIA_PROXY_MODE
  417. Possible values: http-only, all, or none\&.
  418. .br
  419. Default is http-only\&.
  420. .TP
  421. .B MEDIA_PROXY_PRIVATE_KEY
  422. Set a custom private key used to sign proxified media URLs\&.
  423. .br
  424. By default, a secret key is randomly generated during startup\&.
  425. .TP
  426. .B METRICS_ALLOWED_NETWORKS
  427. List of networks allowed to access the metrics endpoint (comma-separated values)\&.
  428. .br
  429. Default is 127.0.0.1/8\&.
  430. .TP
  431. .B METRICS_COLLECTOR
  432. Set to 1 to enable metrics collector. Expose a /metrics endpoint for Prometheus.
  433. .br
  434. Disabled by default\&.
  435. .TP
  436. .B METRICS_PASSWORD
  437. Metrics endpoint password for basic HTTP authentication\&.
  438. .br
  439. Default is empty\&.
  440. .TP
  441. .B METRICS_PASSWORD_FILE
  442. Path to a file that contains the password for the metrics endpoint HTTP authentication\&.
  443. .br
  444. Default is empty\&.
  445. .TP
  446. .B METRICS_REFRESH_INTERVAL
  447. Refresh interval to collect database metrics\&.
  448. .br
  449. Default is 60 seconds\&.
  450. .TP
  451. .B METRICS_USERNAME
  452. Metrics endpoint username for basic HTTP authentication\&.
  453. .br
  454. Default is empty\&.
  455. .TP
  456. .B METRICS_USERNAME_FILE
  457. Path to a file that contains the username for the metrics endpoint HTTP authentication\&.
  458. .br
  459. Default is empty\&.
  460. .TP
  461. .B OAUTH2_CLIENT_ID
  462. OAuth2 client ID\&.
  463. .br
  464. Default is empty\&.
  465. .TP
  466. .B OAUTH2_CLIENT_ID_FILE
  467. Path to a secret key exposed as a file, it should contain the \fBOAUTH2_CLIENT_ID\fR value\&.
  468. .br
  469. Default is empty\&.
  470. .TP
  471. .B OAUTH2_CLIENT_SECRET
  472. OAuth2 client secret\&.
  473. .br
  474. Default is empty\&.
  475. .TP
  476. .B OAUTH2_CLIENT_SECRET_FILE
  477. Path to a secret key exposed as a file, it should contain the \fBOAUTH2_CLIENT_SECRET\fR value\&.
  478. .br
  479. Default is empty\&.
  480. .TP
  481. .B OAUTH2_OIDC_DISCOVERY_ENDPOINT
  482. OpenID Connect discovery endpoint\&.
  483. .br
  484. Default is empty\&.
  485. .TP
  486. .B OAUTH2_OIDC_PROVIDER_NAME
  487. Name to display for the OIDC provider\&.
  488. .br
  489. Default is "OpenID Connect"\&.
  490. .TP
  491. .B OAUTH2_PROVIDER
  492. Possible values are "google" or "oidc"\&.
  493. .br
  494. Default is empty\&.
  495. .TP
  496. .B OAUTH2_REDIRECT_URL
  497. OAuth2 redirect URL\&.
  498. .br
  499. This URL must be registered with the provider and is something like https://miniflux.example.org/oauth2/oidc/callback\&.
  500. .br
  501. Default is empty\&.
  502. .TP
  503. .B OAUTH2_USER_CREATION
  504. Set to 1 to authorize OAuth2 user creation\&.
  505. .br
  506. Disabled by default\&.
  507. .TP
  508. .B POLLING_FREQUENCY
  509. Interval for the background job scheduler.
  510. .br
  511. Determines how often a batch of feeds is selected for refresh, based on their last refresh time\&.
  512. .br
  513. Default is 60 minutes\&.
  514. .TP
  515. .B POLLING_LIMIT_PER_HOST
  516. Limits the number of concurrent requests to the same hostname when polling feeds.
  517. .br
  518. This helps prevent overwhelming a single server during batch processing by the worker pool.
  519. .br
  520. Default is 0 (disabled)\&.
  521. .TP
  522. .B POLLING_PARSING_ERROR_LIMIT
  523. The maximum number of parsing errors that the program will try before stopping polling a feed.
  524. .br
  525. Once the limit is reached, the user must refresh the feed manually. Set to 0 for unlimited.
  526. .br
  527. Default is 3\&.
  528. .TP
  529. .B POLLING_SCHEDULER
  530. Determines the strategy used to schedule feed polling.
  531. .br
  532. Supported values are "round_robin" and "entry_frequency".
  533. .br
  534. - "round_robin": Feeds are polled in a fixed, rotating order.
  535. .br
  536. - "entry_frequency": The polling interval for each feed is based on the average update frequency over the past week.
  537. .br
  538. The number of feeds polled in a given period is limited by the POLLING_FREQUENCY and BATCH_SIZE settings.
  539. .br
  540. Regardless of the scheduler used, the total number of polled feeds will not exceed the maximum allowed per polling cycle.
  541. .br
  542. Default is "round_robin"\&.
  543. .TP
  544. .B PORT
  545. Override \fBLISTEN_ADDR\fR to \fB0.0.0.0:$PORT\fR\&.
  546. .br
  547. Default is empty\&.
  548. .TP
  549. .B RUN_MIGRATIONS
  550. Set to 1 to run database migrations\&.
  551. .br
  552. Disabled by default\&.
  553. .TP
  554. .B SCHEDULER_ENTRY_FREQUENCY_FACTOR
  555. Factor to increase refresh frequency for the entry frequency scheduler\&.
  556. .br
  557. Default is 1\&.
  558. .TP
  559. .B SCHEDULER_ENTRY_FREQUENCY_MAX_INTERVAL
  560. Maximum interval in minutes for the entry frequency scheduler\&.
  561. .br
  562. Default is 1440 minutes (24 hours)\&.
  563. .TP
  564. .B SCHEDULER_ENTRY_FREQUENCY_MIN_INTERVAL
  565. Minimum interval in minutes for the entry frequency scheduler\&.
  566. .br
  567. Default is 5 minutes\&.
  568. .TP
  569. .B SCHEDULER_ROUND_ROBIN_MAX_INTERVAL
  570. Maximum interval in minutes for the round robin scheduler\&.
  571. .br
  572. Default is 1440 minutes (24 hours)\&.
  573. .TP
  574. .B SCHEDULER_ROUND_ROBIN_MIN_INTERVAL
  575. Minimum interval in minutes for the round robin scheduler\&.
  576. .br
  577. Default is 60 minutes\&.
  578. .TP
  579. .B TRUSTED_REVERSE_PROXY_NETWORKS
  580. List of networks (CIDR notation) allowed to use the proxy authentication header, \fBX-Forwarded-For\fR, \fBX-Forwarded-Proto\fR, and \fBX-Real-Ip\fR headers\&.
  581. .br
  582. Default is empty\&.
  583. .TP
  584. .B WATCHDOG
  585. Enable or disable Systemd watchdog\&.
  586. .br
  587. Enabled by default\&.
  588. .TP
  589. .B WEBAUTHN
  590. Enable or disable WebAuthn/Passkey authentication\&.
  591. .br
  592. You must provide a username on the login page if you are using non-residential keys. However, this is not required for discoverable credentials\&.
  593. .br
  594. Default is disabled\&.
  595. .TP
  596. .B WORKER_POOL_SIZE
  597. Number of background workers\&.
  598. .br
  599. Default is 16 workers\&.
  600. .TP
  601. .B YOUTUBE_API_KEY
  602. YouTube API key for use with FETCH_YOUTUBE_WATCH_TIME. If nonempty, the duration will be fetched from the YouTube API. Otherwise, the duration will be fetched from the YouTube website\&.
  603. .br
  604. Default is empty\&.
  605. .TP
  606. .B YOUTUBE_EMBED_URL_OVERRIDE
  607. YouTube URL which will be used for embeds\&.
  608. .br
  609. Default is https://www.youtube-nocookie.com/embed/\&.
  610. .SH AUTHORS
  611. .P
  612. Miniflux is developed and maintained by Fr\['e]d\['e]ric Guillot with contributions from the Miniflux community\&.
  613. .SH "COPYRIGHT"
  614. .P
  615. Miniflux is released under the Apache 2.0 license\&.