miniflux.1 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. .\" Manpage for miniflux.
  2. .TH "MINIFLUX" "1" "September 29, 2025" "\ \&" "\ \&"
  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. Default is empty.
  147. .TP
  148. .B AUTH_PROXY_USER_CREATION
  149. Set to 1 to create users based on proxy authentication information\&.
  150. .br
  151. Disabled by default\&.
  152. .TP
  153. .B BASE_URL
  154. Base URL to generate HTML links and base path for cookies\&.
  155. .br
  156. Default is http://localhost/\&.
  157. .TP
  158. .B BATCH_SIZE
  159. Number of feeds to send to the queue for each interval\&.
  160. .br
  161. Default is 100 feeds\&.
  162. .TP
  163. .B CERT_DOMAIN
  164. Use Let's Encrypt to get automatically a certificate for this domain\&.
  165. .br
  166. Default is empty\&.
  167. .TP
  168. .B CERT_FILE
  169. Path to SSL certificate\&.
  170. .br
  171. Default is empty\&.
  172. .TP
  173. .B CLEANUP_ARCHIVE_BATCH_SIZE
  174. Number of entries to archive for each job interval\&.
  175. .br
  176. Default is 10000 entries\&.
  177. .TP
  178. .B CLEANUP_ARCHIVE_READ_DAYS
  179. Number of days after marking read entries as removed\&.
  180. .br
  181. Set to -1 to keep all read entries.
  182. .br
  183. Default is 60 days\&.
  184. .TP
  185. .B CLEANUP_ARCHIVE_UNREAD_DAYS
  186. Number of days after marking unread entries as removed\&.
  187. .br
  188. Set to -1 to keep all unread entries.
  189. .br
  190. Default is 180 days\&.
  191. .TP
  192. .B CLEANUP_FREQUENCY_HOURS
  193. Cleanup job frequency. Remove old sessions and archive entries\&.
  194. .br
  195. Default is 24 hours\&.
  196. .TP
  197. .B CLEANUP_REMOVE_SESSIONS_DAYS
  198. Number of days after removing old sessions from the database\&.
  199. .br
  200. Default is 30 days\&.
  201. .TP
  202. .B CREATE_ADMIN
  203. Set to 1 to create an admin user from environment variables\&.
  204. .br
  205. Disabled by default\&.
  206. .TP
  207. .B DATABASE_CONNECTION_LIFETIME
  208. Set the maximum amount of time a connection may be reused\&.
  209. .br
  210. Default is 5 minutes\&.
  211. .TP
  212. .B DATABASE_MAX_CONNS
  213. Maximum number of database connections\&.
  214. .br
  215. Default is 20\&.
  216. .TP
  217. .B DATABASE_MIN_CONNS
  218. Minimum number of database connections\&.
  219. .br
  220. Default is 1\&.
  221. .TP
  222. .B DATABASE_URL
  223. Postgresql connection parameters\&.
  224. .br
  225. Default is "user=postgres password=postgres dbname=miniflux2 sslmode=disable"\&.
  226. .TP
  227. .B DATABASE_URL_FILE
  228. Path to a secret key exposed as a file, it should contain $DATABASE_URL value\&.
  229. .br
  230. Default is empty\&.
  231. .TP
  232. .B DISABLE_HSTS
  233. Disable HTTP Strict Transport Security header if \fBHTTPS\fR is set\&.
  234. .br
  235. Default is false (The HSTS is enabled)\&.
  236. .TP
  237. .B DISABLE_HTTP_SERVICE
  238. Set the value to 1 to disable the HTTP service\&.
  239. .br
  240. Default is false (The HTTP service is enabled)\&.
  241. .TP
  242. .B DISABLE_LOCAL_AUTH
  243. Disable local authentication\&.
  244. .br
  245. When set to true, the username/password form is hidden from the login screen, and the
  246. options to change username/password or unlink OAuth2 account are hidden from the settings page.
  247. .br
  248. Default is false\&.
  249. .TP
  250. .B DISABLE_SCHEDULER_SERVICE
  251. Set the value to 1 to disable the internal scheduler service\&.
  252. .br
  253. Default is false (The internal scheduler service is enabled)\&.
  254. .TP
  255. .B FETCH_BILIBILI_WATCH_TIME
  256. Set the value to 1 to scrape video duration from Bilibili website and
  257. use it as a reading time\&.
  258. .br
  259. Disabled by default\&.
  260. .TP
  261. .B FETCH_NEBULA_WATCH_TIME
  262. Set the value to 1 to scrape video duration from Nebula website and
  263. use it as a reading time\&.
  264. .br
  265. Disabled by default\&.
  266. .TP
  267. .B FETCH_ODYSEE_WATCH_TIME
  268. Set the value to 1 to scrape video duration from Odysee website and
  269. use it as a reading time\&.
  270. .br
  271. Disabled by default\&.
  272. .TP
  273. .B FETCH_YOUTUBE_WATCH_TIME
  274. Set the value to 1 to scrape video duration from YouTube website and
  275. use it as a reading time\&.
  276. .br
  277. Disabled by default\&.
  278. .TP
  279. .B FILTER_ENTRY_MAX_AGE_DAYS
  280. Number of days after which new entries should be retained\&.
  281. .br
  282. Set 7 to fetch only entries 7 days old\&.
  283. .br
  284. Default is 0 (disabled)\&.
  285. .TP
  286. .B FORCE_REFRESH_INTERVAL
  287. The minimum interval for manual refresh\&.
  288. .br
  289. Default is 30 minutes\&.
  290. .TP
  291. .B HTTP_CLIENT_MAX_BODY_SIZE
  292. Maximum body size for HTTP requests in Mebibyte (MiB)\&.
  293. .br
  294. Default is 15 MiB\&.
  295. .TP
  296. .B HTTP_CLIENT_PROXIES
  297. Enable proxy rotation for outgoing requests by providing a comma-separated list of proxy URLs\&.
  298. .br
  299. Default is empty\&.
  300. .TP
  301. .B HTTP_CLIENT_PROXY
  302. Proxy URL to use when the "Fetch via proxy" feed option is enabled\&.
  303. .br
  304. Default is empty\&.
  305. .TP
  306. .B HTTP_CLIENT_TIMEOUT
  307. Time limit in seconds before the HTTP client cancel the request\&.
  308. .br
  309. Default is 20 seconds\&.
  310. .TP
  311. .B HTTP_CLIENT_USER_AGENT
  312. The default User-Agent header to use for the HTTP client. Can be overridden in per-feed settings\&.
  313. .br
  314. When empty, Miniflux uses a default User-Agent that includes the Miniflux version\&.
  315. .br
  316. Default is empty.
  317. .TP
  318. .B HTTP_SERVER_TIMEOUT
  319. Time limit in seconds before the HTTP client cancel the request\&.
  320. .br
  321. Default is 300 seconds\&.
  322. .TP
  323. .B HTTPS
  324. Forces cookies to use secure flag and send HSTS header\&.
  325. .br
  326. Default is disabled\&.
  327. .TP
  328. .B INVIDIOUS_INSTANCE
  329. Set a custom invidious instance to use\&.
  330. .br
  331. Default is yewtu.be\&.
  332. .TP
  333. .B KEY_FILE
  334. Path to SSL private key\&.
  335. .br
  336. Default is empty\&.
  337. .TP
  338. .B LISTEN_ADDR
  339. Address to listen on. Use absolute path to listen on Unix socket (/var/run/miniflux.sock)\&.
  340. .br
  341. Multiple addresses can be specified, separated by commas. For example: 127.0.0.1:8080, 127.0.0.1:8081\&.
  342. .br
  343. Default is 127.0.0.1:8080\&.
  344. .TP
  345. .B LOG_DATE_TIME
  346. Display the date and time in log messages\&.
  347. .br
  348. Disabled by default\&.
  349. .TP
  350. .B LOG_FILE
  351. Supported values are "stderr", "stdout", or a file name\&.
  352. .br
  353. Default is "stderr"\&.
  354. .TP
  355. .B LOG_FORMAT
  356. Supported log formats are "text" or "json"\&.
  357. .br
  358. Default is "text"\&.
  359. .TP
  360. .B LOG_LEVEL
  361. Supported values are "debug", "info", "warning", or "error"\&.
  362. .br
  363. Default is "info"\&.
  364. .TP
  365. .B MAINTENANCE_MESSAGE
  366. Define a custom maintenance message\&.
  367. .br
  368. Default is "Miniflux is currently under maintenance"\&.
  369. .TP
  370. .B MAINTENANCE_MODE
  371. Set to 1 to enable maintenance mode\&.
  372. .br
  373. Disabled by default\&.
  374. .TP
  375. .B MEDIA_PROXY_CUSTOM_URL
  376. Sets an external server to proxy media through\&.
  377. .br
  378. Default is empty, Miniflux does the proxying\&.
  379. .TP
  380. .B MEDIA_PROXY_HTTP_CLIENT_TIMEOUT
  381. Time limit in seconds before the media proxy HTTP client cancel the request\&.
  382. .br
  383. Default is 120 seconds\&.
  384. .TP
  385. .B MEDIA_PROXY_RESOURCE_TYPES
  386. A comma-separated list of media types to proxify. Supported values are: image, audio, video\&.
  387. .br
  388. Default is image\&.
  389. .TP
  390. .B MEDIA_PROXY_MODE
  391. Possible values: http-only, all, or none\&.
  392. .br
  393. Default is http-only\&.
  394. .TP
  395. .B MEDIA_PROXY_PRIVATE_KEY
  396. Set a custom custom private key used to sign proxified media URLs\&.
  397. .br
  398. By default, a secret key is randomly generated during startup\&.
  399. .TP
  400. .B METRICS_ALLOWED_NETWORKS
  401. List of networks allowed to access the metrics endpoint (comma-separated values)\&.
  402. .br
  403. Default is 127.0.0.1/8\&.
  404. .TP
  405. .B METRICS_COLLECTOR
  406. Set to 1 to enable metrics collector. Expose a /metrics endpoint for Prometheus.
  407. .br
  408. Disabled by default\&.
  409. .TP
  410. .B METRICS_PASSWORD
  411. Metrics endpoint password for basic HTTP authentication\&.
  412. .br
  413. Default is empty\&.
  414. .TP
  415. .B METRICS_PASSWORD_FILE
  416. Path to a file that contains the password for the metrics endpoint HTTP authentication\&.
  417. .br
  418. Default is empty\&.
  419. .TP
  420. .B METRICS_REFRESH_INTERVAL
  421. Refresh interval to collect database metrics\&.
  422. .br
  423. Default is 60 seconds\&.
  424. .TP
  425. .B METRICS_USERNAME
  426. Metrics endpoint username for basic HTTP authentication\&.
  427. .br
  428. Default is empty\&.
  429. .TP
  430. .B METRICS_USERNAME_FILE
  431. Path to a file that contains the username for the metrics endpoint HTTP authentication\&.
  432. .br
  433. Default is empty\&.
  434. .TP
  435. .B OAUTH2_CLIENT_ID
  436. OAuth2 client ID\&.
  437. .br
  438. Default is empty\&.
  439. .TP
  440. .B OAUTH2_CLIENT_ID_FILE
  441. Path to a secret key exposed as a file, it should contain $OAUTH2_CLIENT_ID value\&.
  442. .br
  443. Default is empty\&.
  444. .TP
  445. .B OAUTH2_CLIENT_SECRET
  446. OAuth2 client secret\&.
  447. .br
  448. Default is empty\&.
  449. .TP
  450. .B OAUTH2_CLIENT_SECRET_FILE
  451. Path to a secret key exposed as a file, it should contain $OAUTH2_CLIENT_SECRET value\&.
  452. .br
  453. Default is empty\&.
  454. .TP
  455. .B OAUTH2_OIDC_DISCOVERY_ENDPOINT
  456. OpenID Connect discovery endpoint\&.
  457. .br
  458. Default is empty\&.
  459. .TP
  460. .B OAUTH2_OIDC_PROVIDER_NAME
  461. Name to display for the OIDC provider\&.
  462. .br
  463. Default is "OpenID Connect"\&.
  464. .TP
  465. .B OAUTH2_PROVIDER
  466. Possible values are "google" or "oidc"\&.
  467. .br
  468. Default is empty\&.
  469. .TP
  470. .B OAUTH2_REDIRECT_URL
  471. OAuth2 redirect URL\&.
  472. .br
  473. This URL must be registered with the provider and is something like https://miniflux.example.org/oauth2/oidc/callback\&.
  474. .br
  475. Default is empty\&.
  476. .TP
  477. .B OAUTH2_USER_CREATION
  478. Set to 1 to authorize OAuth2 user creation\&.
  479. .br
  480. Disabled by default\&.
  481. .TP
  482. .B POLLING_FREQUENCY
  483. Interval for the background job scheduler.
  484. .br
  485. Determines how often a batch of feeds is selected for refresh, based on their last refresh time\&.
  486. .br
  487. Default is 60 minutes\&.
  488. .TP
  489. .B POLLING_LIMIT_PER_HOST
  490. Limits the number of concurrent requests to the same hostname when polling feeds.
  491. .br
  492. This helps prevent overwhelming a single server during batch processing by the worker pool.
  493. .br
  494. Default is 0 (disabled)\&.
  495. .TP
  496. .B POLLING_PARSING_ERROR_LIMIT
  497. The maximum number of parsing errors that the program will try before stopping polling a feed.
  498. .br
  499. Once the limit is reached, the user must refresh the feed manually. Set to 0 for unlimited.
  500. .br
  501. Default is 3\&.
  502. .TP
  503. .B POLLING_SCHEDULER
  504. Determines the strategy used to schedule feed polling.
  505. .br
  506. Supported values are "round_robin" and "entry_frequency".
  507. .br
  508. - "round_robin": Feeds are polled in a fixed, rotating order.
  509. .br
  510. - "entry_frequency": The polling interval for each feed is based on the average update frequency over the past week.
  511. .br
  512. The number of feeds polled in a given period is limited by the POLLING_FREQUENCY and BATCH_SIZE settings.
  513. .br
  514. Regardless of the scheduler used, the total number of polled feeds will not exceed the maximum allowed per polling cycle.
  515. .br
  516. Default is "round_robin"\&.
  517. .TP
  518. .B PORT
  519. Override LISTEN_ADDR to 0.0.0.0:$PORT\&.
  520. .br
  521. Default is empty\&.
  522. .TP
  523. .B RUN_MIGRATIONS
  524. Set to 1 to run database migrations\&.
  525. .br
  526. Disabled by default\&.
  527. .TP
  528. .B SCHEDULER_ENTRY_FREQUENCY_FACTOR
  529. Factor to increase refresh frequency for the entry frequency scheduler\&.
  530. .br
  531. Default is 1\&.
  532. .TP
  533. .B SCHEDULER_ENTRY_FREQUENCY_MAX_INTERVAL
  534. Maximum interval in minutes for the entry frequency scheduler\&.
  535. .br
  536. Default is 1440 minutes (24 hours)\&.
  537. .TP
  538. .B SCHEDULER_ENTRY_FREQUENCY_MIN_INTERVAL
  539. Minimum interval in minutes for the entry frequency scheduler\&.
  540. .br
  541. Default is 5 minutes\&.
  542. .TP
  543. .B SCHEDULER_ROUND_ROBIN_MAX_INTERVAL
  544. Maximum interval in minutes for the round robin scheduler\&.
  545. .br
  546. Default is 1440 minutes (24 hours)\&.
  547. .TP
  548. .B SCHEDULER_ROUND_ROBIN_MIN_INTERVAL
  549. Minimum interval in minutes for the round robin scheduler\&.
  550. .br
  551. Default is 60 minutes\&.
  552. .TP
  553. .B WATCHDOG
  554. Enable or disable Systemd watchdog\&.
  555. .br
  556. Enabled by default\&.
  557. .TP
  558. .B WEBAUTHN
  559. Enable or disable WebAuthn/Passkey authentication\&.
  560. .br
  561. You must provide a username on the login page if you are using non-residential keys. However, this is not required for discoverable credentials\&.
  562. .br
  563. Default is disabled\&.
  564. .TP
  565. .B WORKER_POOL_SIZE
  566. Number of background workers\&.
  567. .br
  568. Default is 16 workers\&.
  569. .TP
  570. .B YOUTUBE_API_KEY
  571. 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\&.
  572. .br
  573. Default is empty\&.
  574. .TP
  575. .B YOUTUBE_EMBED_URL_OVERRIDE
  576. YouTube URL which will be used for embeds\&.
  577. .br
  578. Default is https://www.youtube-nocookie.com/embed/\&.
  579. .SH AUTHORS
  580. .P
  581. Miniflux is written and maintained by Fr\['e]d\['e]ric Guillot\&.
  582. .SH "COPYRIGHT"
  583. .P
  584. Miniflux is released under the Apache 2.0 license\&.