miniflux.1 15 KB

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