miniflux.1 13 KB

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