miniflux.1 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. .\" Manpage for miniflux.
  2. .TH "MINIFLUX" "1" "March 1, 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 FETCHER_ALLOW_PRIVATE_NETWORKS
  272. Set to 1 to allow outgoing fetcher requests to private or loopback networks\&.
  273. .br
  274. Disabled by default, private networks are refused\&.
  275. .TP
  276. .B FETCH_BILIBILI_WATCH_TIME
  277. Set the value to 1 to scrape video duration from Bilibili website and
  278. use it as a reading time\&.
  279. .br
  280. Disabled by default\&.
  281. .TP
  282. .B FETCH_NEBULA_WATCH_TIME
  283. Set the value to 1 to scrape video duration from Nebula website and
  284. use it as a reading time\&.
  285. .br
  286. Disabled by default\&.
  287. .TP
  288. .B FETCH_ODYSEE_WATCH_TIME
  289. Set the value to 1 to scrape video duration from Odysee website and
  290. use it as a reading time\&.
  291. .br
  292. Disabled by default\&.
  293. .TP
  294. .B FETCH_YOUTUBE_WATCH_TIME
  295. Set the value to 1 to scrape video duration from YouTube website and
  296. use it as a reading time\&.
  297. .br
  298. Disabled by default\&.
  299. .TP
  300. .B FORCE_REFRESH_INTERVAL
  301. The minimum interval for manual refresh\&.
  302. .br
  303. Default is 30 minutes\&.
  304. .TP
  305. .B HTTP_CLIENT_MAX_BODY_SIZE
  306. Maximum body size for HTTP requests in Mebibyte (MiB)\&.
  307. .br
  308. Default is 15 MiB\&.
  309. .TP
  310. .B HTTP_CLIENT_PROXIES
  311. Enable proxy rotation for outgoing requests by providing a comma-separated list of proxy URLs\&.
  312. .br
  313. Default is empty\&.
  314. .TP
  315. .B HTTP_CLIENT_PROXY
  316. Proxy URL to use when the "Fetch via proxy" feed option is enabled\&.
  317. .br
  318. Default is empty\&.
  319. .TP
  320. .B HTTP_CLIENT_TIMEOUT
  321. Time limit in seconds before the HTTP client cancels the request\&.
  322. .br
  323. Default is 20 seconds\&.
  324. .TP
  325. .B HTTP_CLIENT_USER_AGENT
  326. The default User-Agent header to use for the HTTP client. Can be overridden in per-feed settings\&.
  327. .br
  328. When empty, Miniflux uses a default User-Agent that includes the Miniflux version\&.
  329. .br
  330. Default is empty.
  331. .TP
  332. .B HTTP_SERVER_TIMEOUT
  333. Read, write, and idle timeout in seconds for the HTTP server\&.
  334. .br
  335. Default is 300 seconds\&.
  336. .TP
  337. .B HTTPS
  338. Forces cookies to use secure flag and send HSTS header\&.
  339. .br
  340. Default is disabled\&.
  341. .TP
  342. .B INTEGRATION_ALLOW_PRIVATE_NETWORKS
  343. Set to 1 to allow outgoing integration requests to private or loopback networks\&.
  344. .br
  345. Disabled by default, private networks are refused\&.
  346. .TP
  347. .B INVIDIOUS_INSTANCE
  348. Set a custom invidious instance to use\&.
  349. .br
  350. Default is yewtu.be\&.
  351. .TP
  352. .B KEY_FILE
  353. Path to SSL private key\&.
  354. .br
  355. Default is empty\&.
  356. .TP
  357. .B LISTEN_ADDR
  358. Address to listen on. Use absolute path to listen on Unix socket (/var/run/miniflux.sock)\&.
  359. .br
  360. Multiple addresses can be specified, separated by commas. For example: 127.0.0.1:8080, 127.0.0.1:8081\&.
  361. .br
  362. Default is 127.0.0.1:8080\&.
  363. .TP
  364. .B LOG_DATE_TIME
  365. Display the date and time in log messages\&.
  366. .br
  367. Disabled by default\&.
  368. .TP
  369. .B LOG_FILE
  370. Supported values are "stderr", "stdout", or a file name\&.
  371. .br
  372. Default is "stderr"\&.
  373. .TP
  374. .B LOG_FORMAT
  375. Supported log formats are "text" or "json"\&.
  376. .br
  377. Default is "text"\&.
  378. .TP
  379. .B LOG_LEVEL
  380. Supported values are "debug", "info", "warning", or "error"\&.
  381. .br
  382. Default is "info"\&.
  383. .TP
  384. .B MAINTENANCE_MESSAGE
  385. Define a custom maintenance message\&.
  386. .br
  387. Default is "Miniflux is currently under maintenance"\&.
  388. .TP
  389. .B MAINTENANCE_MODE
  390. Set to 1 to enable maintenance mode\&.
  391. .br
  392. Disabled by default\&.
  393. .TP
  394. .B MEDIA_PROXY_CUSTOM_URL
  395. Sets an external server to proxy media through\&.
  396. .br
  397. Default is empty, Miniflux does the proxying\&.
  398. .TP
  399. .B MEDIA_PROXY_HTTP_CLIENT_TIMEOUT
  400. Time limit in seconds before the media proxy HTTP client cancels the request\&.
  401. .br
  402. Default is 120 seconds\&.
  403. .TP
  404. .B MEDIA_PROXY_RESOURCE_TYPES
  405. A comma-separated list of media types to proxify. Supported values are: image, audio, video\&.
  406. .br
  407. Default is image\&.
  408. .TP
  409. .B MEDIA_PROXY_MODE
  410. Possible values: http-only, all, or none\&.
  411. .br
  412. Default is http-only\&.
  413. .TP
  414. .B MEDIA_PROXY_PRIVATE_KEY
  415. Set a custom private key used to sign proxified media URLs\&.
  416. .br
  417. By default, a secret key is randomly generated during startup\&.
  418. .TP
  419. .B METRICS_ALLOWED_NETWORKS
  420. List of networks allowed to access the metrics endpoint (comma-separated values)\&.
  421. .br
  422. Default is 127.0.0.1/8\&.
  423. .TP
  424. .B METRICS_COLLECTOR
  425. Set to 1 to enable metrics collector. Expose a /metrics endpoint for Prometheus.
  426. .br
  427. Disabled by default\&.
  428. .TP
  429. .B METRICS_PASSWORD
  430. Metrics endpoint password for basic HTTP authentication\&.
  431. .br
  432. Default is empty\&.
  433. .TP
  434. .B METRICS_PASSWORD_FILE
  435. Path to a file that contains the password for the metrics endpoint HTTP authentication\&.
  436. .br
  437. Default is empty\&.
  438. .TP
  439. .B METRICS_REFRESH_INTERVAL
  440. Refresh interval to collect database metrics\&.
  441. .br
  442. Default is 60 seconds\&.
  443. .TP
  444. .B METRICS_USERNAME
  445. Metrics endpoint username for basic HTTP authentication\&.
  446. .br
  447. Default is empty\&.
  448. .TP
  449. .B METRICS_USERNAME_FILE
  450. Path to a file that contains the username for the metrics endpoint HTTP authentication\&.
  451. .br
  452. Default is empty\&.
  453. .TP
  454. .B OAUTH2_CLIENT_ID
  455. OAuth2 client ID\&.
  456. .br
  457. Default is empty\&.
  458. .TP
  459. .B OAUTH2_CLIENT_ID_FILE
  460. Path to a secret key exposed as a file, it should contain the \fBOAUTH2_CLIENT_ID\fR value\&.
  461. .br
  462. Default is empty\&.
  463. .TP
  464. .B OAUTH2_CLIENT_SECRET
  465. OAuth2 client secret\&.
  466. .br
  467. Default is empty\&.
  468. .TP
  469. .B OAUTH2_CLIENT_SECRET_FILE
  470. Path to a secret key exposed as a file, it should contain the \fBOAUTH2_CLIENT_SECRET\fR value\&.
  471. .br
  472. Default is empty\&.
  473. .TP
  474. .B OAUTH2_OIDC_DISCOVERY_ENDPOINT
  475. OpenID Connect discovery endpoint\&.
  476. .br
  477. Default is empty\&.
  478. .TP
  479. .B OAUTH2_OIDC_PROVIDER_NAME
  480. Name to display for the OIDC provider\&.
  481. .br
  482. Default is "OpenID Connect"\&.
  483. .TP
  484. .B OAUTH2_PROVIDER
  485. Possible values are "google" or "oidc"\&.
  486. .br
  487. Default is empty\&.
  488. .TP
  489. .B OAUTH2_REDIRECT_URL
  490. OAuth2 redirect URL\&.
  491. .br
  492. This URL must be registered with the provider and is something like https://miniflux.example.org/oauth2/oidc/callback\&.
  493. .br
  494. Default is empty\&.
  495. .TP
  496. .B OAUTH2_USER_CREATION
  497. Set to 1 to authorize OAuth2 user creation\&.
  498. .br
  499. Disabled by default\&.
  500. .TP
  501. .B POLLING_FREQUENCY
  502. Interval for the background job scheduler.
  503. .br
  504. Determines how often a batch of feeds is selected for refresh, based on their last refresh time\&.
  505. .br
  506. Default is 60 minutes\&.
  507. .TP
  508. .B POLLING_LIMIT_PER_HOST
  509. Limits the number of concurrent requests to the same hostname when polling feeds.
  510. .br
  511. This helps prevent overwhelming a single server during batch processing by the worker pool.
  512. .br
  513. Default is 0 (disabled)\&.
  514. .TP
  515. .B POLLING_PARSING_ERROR_LIMIT
  516. The maximum number of parsing errors that the program will try before stopping polling a feed.
  517. .br
  518. Once the limit is reached, the user must refresh the feed manually. Set to 0 for unlimited.
  519. .br
  520. Default is 3\&.
  521. .TP
  522. .B POLLING_SCHEDULER
  523. Determines the strategy used to schedule feed polling.
  524. .br
  525. Supported values are "round_robin" and "entry_frequency".
  526. .br
  527. - "round_robin": Feeds are polled in a fixed, rotating order.
  528. .br
  529. - "entry_frequency": The polling interval for each feed is based on the average update frequency over the past week.
  530. .br
  531. The number of feeds polled in a given period is limited by the POLLING_FREQUENCY and BATCH_SIZE settings.
  532. .br
  533. Regardless of the scheduler used, the total number of polled feeds will not exceed the maximum allowed per polling cycle.
  534. .br
  535. Default is "round_robin"\&.
  536. .TP
  537. .B PORT
  538. Override \fBLISTEN_ADDR\fR to \fB0.0.0.0:$PORT\fR\&.
  539. .br
  540. Default is empty\&.
  541. .TP
  542. .B RUN_MIGRATIONS
  543. Set to 1 to run database migrations\&.
  544. .br
  545. Disabled by default\&.
  546. .TP
  547. .B SCHEDULER_ENTRY_FREQUENCY_FACTOR
  548. Factor to increase refresh frequency for the entry frequency scheduler\&.
  549. .br
  550. Default is 1\&.
  551. .TP
  552. .B SCHEDULER_ENTRY_FREQUENCY_MAX_INTERVAL
  553. Maximum interval in minutes for the entry frequency scheduler\&.
  554. .br
  555. Default is 1440 minutes (24 hours)\&.
  556. .TP
  557. .B SCHEDULER_ENTRY_FREQUENCY_MIN_INTERVAL
  558. Minimum interval in minutes for the entry frequency scheduler\&.
  559. .br
  560. Default is 5 minutes\&.
  561. .TP
  562. .B SCHEDULER_ROUND_ROBIN_MAX_INTERVAL
  563. Maximum interval in minutes for the round robin scheduler\&.
  564. .br
  565. Default is 1440 minutes (24 hours)\&.
  566. .TP
  567. .B SCHEDULER_ROUND_ROBIN_MIN_INTERVAL
  568. Minimum interval in minutes for the round robin scheduler\&.
  569. .br
  570. Default is 60 minutes\&.
  571. .TP
  572. .B TRUSTED_REVERSE_PROXY_NETWORKS
  573. 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\&.
  574. .br
  575. Default is empty\&.
  576. .TP
  577. .B WATCHDOG
  578. Enable or disable Systemd watchdog\&.
  579. .br
  580. Enabled by default\&.
  581. .TP
  582. .B WEBAUTHN
  583. Enable or disable WebAuthn/Passkey authentication\&.
  584. .br
  585. You must provide a username on the login page if you are using non-residential keys. However, this is not required for discoverable credentials\&.
  586. .br
  587. Default is disabled\&.
  588. .TP
  589. .B WORKER_POOL_SIZE
  590. Number of background workers\&.
  591. .br
  592. Default is 16 workers\&.
  593. .TP
  594. .B YOUTUBE_API_KEY
  595. 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\&.
  596. .br
  597. Default is empty\&.
  598. .TP
  599. .B YOUTUBE_EMBED_URL_OVERRIDE
  600. YouTube URL which will be used for embeds\&.
  601. .br
  602. Default is https://www.youtube-nocookie.com/embed/\&.
  603. .SH AUTHORS
  604. .P
  605. Miniflux is developed and maintained by Fr\['e]d\['e]ric Guillot with contributions from the Miniflux community\&.
  606. .SH "COPYRIGHT"
  607. .P
  608. Miniflux is released under the Apache 2.0 license\&.