miniflux.1 14 KB

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