miniflux.1 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. .\" Manpage for miniflux.
  2. .TH "MINIFLUX" "1" "August 29, 2022" "\ \&" "\ \&"
  3. .SH NAME
  4. miniflux \- Minimalist and opinionated feed reader
  5. .SH SYNOPSIS
  6. \fBminiflux\fR [-vic] [-create-admin] [-debug] [-flush-sessions] [-info] [-migrate]
  7. [-reset-feed-errors] [-reset-password] [-version] [-config-file] [-config-dump]
  8. .SH DESCRIPTION
  9. \fBminiflux\fR is a minimalist and opinionated feed reader.
  10. .SH OPTIONS
  11. .PP
  12. .B \-c
  13. .RS 4
  14. Load configuration file\&.
  15. .RE
  16. .PP
  17. .B \-config-file
  18. .RS 4
  19. Load configuration file\&.
  20. .RE
  21. .PP
  22. .B \-config-dump
  23. .RS 4
  24. Print parsed configuration values. This will include sensitive information like passwords\&.
  25. .RE
  26. .PP
  27. .B \-create-admin
  28. .RS 4
  29. Create admin user\&.
  30. .RE
  31. .PP
  32. .B \-debug
  33. .RS 4
  34. Show debug logs\&.
  35. .RE
  36. .PP
  37. .B \-flush-sessions
  38. .RS 4
  39. Flush all sessions (disconnect users)\&.
  40. .RE
  41. .PP
  42. .B \-healthcheck
  43. .RS 4
  44. Perform a health check on the given endpoint\&.
  45. .br
  46. The value "auto" try to guess the health check endpoint\&.
  47. .RE
  48. .PP
  49. .B \-i
  50. .RS 4
  51. Show application information\&.
  52. .RE
  53. .PP
  54. .B \-info
  55. .RS 4
  56. Show application information\&.
  57. .RE
  58. .PP
  59. .B \-migrate
  60. .RS 4
  61. Run SQL migrations\&.
  62. .RE
  63. .PP
  64. .B \-reset-feed-errors
  65. .RS 4
  66. Clear all feed errors for all users\&.
  67. .RE
  68. .PP
  69. .B \-reset-password
  70. .RS 4
  71. Reset user password\&.
  72. .RE
  73. .PP
  74. .B \-v
  75. .RS 4
  76. Show application version\&.
  77. .RE
  78. .PP
  79. .B \-version
  80. .RS 4
  81. Show application version\&.
  82. .RE
  83. .SH CONFIGURATION FILE
  84. The configuration file is a text file that follow these rules:
  85. .LP
  86. - Miniflux expects each line to be in KEY=VALUE format.
  87. .br
  88. - Lines beginning with # are processed as comments and ignored.
  89. .br
  90. - Blank lines are ignored.
  91. .br
  92. - There is no variable interpolation.
  93. .PP
  94. Keys are the same as the environment variables described below.
  95. .br
  96. Environment variables override the values defined in the config file.
  97. .SH ENVIRONMENT
  98. .TP
  99. .B DEBUG
  100. Set the value to 1 to enable debug logs\&.
  101. .br
  102. Disabled by default\&.
  103. .TP
  104. .B FETCH_YOUTUBE_WATCH_TIME
  105. Set the value to 1 to scrape video duration from YouTube website and
  106. use it as a reading time\&.
  107. .br
  108. Disabled by default\&.
  109. .TP
  110. .B SERVER_TIMING_HEADER
  111. Set the value to 1 to enable server-timing headers\&.
  112. .br
  113. Disabled by default\&.
  114. .TP
  115. .B LOG_DATE_TIME
  116. Display the date and time in log messages\&.
  117. .br
  118. Disabled by default\&.
  119. .TP
  120. .B WORKER_POOL_SIZE
  121. Number of background workers\&.
  122. .br
  123. Default is 5 workers\&.
  124. .TP
  125. .B POLLING_FREQUENCY
  126. Refresh interval in minutes for feeds\&.
  127. .br
  128. Default is 60 minutes\&.
  129. .TP
  130. .B BATCH_SIZE
  131. Number of feeds to send to the queue for each interval\&.
  132. .br
  133. Default is 100 feeds\&.
  134. .TP
  135. .B POLLING_SCHEDULER
  136. Scheduler used for polling feeds. Possible values are "round_robin" or "entry_frequency"\&.
  137. .br
  138. The maximum number of feeds polled for a given period is subject to POLLING_FREQUENCY and BATCH_SIZE\&.
  139. .br
  140. 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\&.
  141. .br
  142. The actual number of feeds polled will not exceed the maximum number of feeds that could be polled for a given period\&.
  143. .br
  144. Default is "round_robin"\&.
  145. .TP
  146. .B SCHEDULER_ENTRY_FREQUENCY_MAX_INTERVAL
  147. Maximum interval in minutes for the entry frequency scheduler\&.
  148. .br
  149. Default is 24 hours\&.
  150. .TP
  151. .B SCHEDULER_ENTRY_FREQUENCY_MIN_INTERVAL
  152. Minimum interval in minutes for the entry frequency scheduler\&.
  153. .br
  154. Default is 5 minutes\&.
  155. .TP
  156. .B POLLING_PARSING_ERROR_LIMIT
  157. 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.
  158. .br
  159. Default is 3\&.
  160. .TP
  161. .B DATABASE_URL
  162. Postgresql connection parameters\&.
  163. .br
  164. Default is "user=postgres password=postgres dbname=miniflux2 sslmode=disable"\&.
  165. .TP
  166. .B DATABASE_URL_FILE
  167. Path to a secret key exposed as a file, it should contain $DATABASE_URL value\&.
  168. .br
  169. Default is empty\&.
  170. .TP
  171. .B DATABASE_CONNECTION_LIFETIME
  172. Set the maximum amount of time a connection may be reused\&.
  173. .br
  174. Default is 5 minutes\&.
  175. .TP
  176. .B DATABASE_MAX_CONNS
  177. Maximum number of database connections\&.
  178. .br
  179. Default is 20\&.
  180. .TP
  181. .B DATABASE_MIN_CONNS
  182. Minimum number of database connections\&.
  183. .br
  184. Default is 20\&.
  185. .TP
  186. .B LISTEN_ADDR
  187. Address to listen on. Use absolute path to listen on Unix socket (/var/run/miniflux.sock)\&.
  188. .br
  189. Default is 127.0.0.1:8080\&.
  190. .TP
  191. .B PORT
  192. Override LISTEN_ADDR to 0.0.0.0:$PORT\&.
  193. .br
  194. Default is empty\&.
  195. .TP
  196. .B BASE_URL
  197. Base URL to generate HTML links and base path for cookies\&.
  198. .br
  199. Default is http://localhost/\&.
  200. .TP
  201. .B CLEANUP_FREQUENCY_HOURS
  202. Cleanup job frequency. Remove old sessions and archive entries\&.
  203. .br
  204. Default is 24 hours\&.
  205. .TP
  206. .B CLEANUP_ARCHIVE_READ_DAYS
  207. Number of days after marking read entries as removed\&.
  208. .br
  209. Set to -1 to keep all read entries.
  210. .br
  211. Default is 60 days\&.
  212. .TP
  213. .B CLEANUP_ARCHIVE_UNREAD_DAYS
  214. Number of days after marking unread entries as removed\&.
  215. .br
  216. Set to -1 to keep all unread entries.
  217. .br
  218. Default is 180 days\&.
  219. .TP
  220. .B CLEANUP_ARCHIVE_BATCH_SIZE
  221. Number of entries to archive for each job interval\&.
  222. .br
  223. Default is 10000 entries\&.
  224. .TP
  225. .B CLEANUP_REMOVE_SESSIONS_DAYS
  226. Number of days after removing old sessions from the database\&.
  227. .br
  228. Default is 30 days\&.
  229. .TP
  230. .B HTTPS
  231. Forces cookies to use secure flag and send HSTS header\&.
  232. .br
  233. Default is empty\&.
  234. .TP
  235. .B DISABLE_HSTS
  236. Disable HTTP Strict Transport Security header if \fBHTTPS\fR is set\&.
  237. .br
  238. Default is false (The HSTS is enabled)\&.
  239. .TP
  240. .B DISABLE_HTTP_SERVICE
  241. Set the value to 1 to disable the HTTP service\&.
  242. .br
  243. Default is false (The HTTP service is enabled)\&.
  244. .TP
  245. .B DISABLE_SCHEDULER_SERVICE
  246. Set the value to 1 to disable the internal scheduler service\&.
  247. .br
  248. Default is false (The internal scheduler service is enabled)\&.
  249. .TP
  250. .B CERT_FILE
  251. Path to SSL certificate\&.
  252. .br
  253. Default is empty\&.
  254. .TP
  255. .B KEY_FILE
  256. Path to SSL private key\&.
  257. .br
  258. Default is empty\&.
  259. .TP
  260. .B CERT_DOMAIN
  261. Use Let's Encrypt to get automatically a certificate for this domain\&.
  262. .br
  263. Default is empty\&.
  264. .TP
  265. .B METRICS_COLLECTOR
  266. Set to 1 to enable metrics collector. Expose a /metrics endpoint for Prometheus.
  267. .br
  268. Disabled by default\&.
  269. .TP
  270. .B METRICS_REFRESH_INTERVAL
  271. Refresh interval to collect database metrics\&.
  272. .br
  273. Default is 60 seconds\&.
  274. .TP
  275. .B METRICS_ALLOWED_NETWORKS
  276. List of networks allowed to access the metrics endpoint (comma-separated values)\&.
  277. .br
  278. Default is 127.0.0.1/8\&.
  279. .TP
  280. .B OAUTH2_PROVIDER
  281. Possible values are "google" or "oidc"\&.
  282. .br
  283. Default is empty\&.
  284. .TP
  285. .B OAUTH2_CLIENT_ID
  286. OAuth2 client ID\&.
  287. .br
  288. Default is empty\&.
  289. .TP
  290. .B OAUTH2_CLIENT_ID_FILE
  291. Path to a secret key exposed as a file, it should contain $OAUTH2_CLIENT_ID value\&.
  292. .br
  293. Default is empty\&.
  294. .TP
  295. .B OAUTH2_CLIENT_SECRET
  296. OAuth2 client secret\&.
  297. .br
  298. Default is empty\&.
  299. .TP
  300. .B OAUTH2_CLIENT_SECRET_FILE
  301. Path to a secret key exposed as a file, it should contain $OAUTH2_CLIENT_SECRET value\&.
  302. .br
  303. Default is empty\&.
  304. .TP
  305. .B OAUTH2_REDIRECT_URL
  306. OAuth2 redirect URL\&.
  307. .br
  308. This URL must be registered with the provider and is something like https://miniflux.example.org/oauth2/oidc/callback\&.
  309. .br
  310. Default is empty\&.
  311. .TP
  312. .B OAUTH2_OIDC_DISCOVERY_ENDPOINT
  313. OpenID Connect discovery endpoint\&.
  314. .br
  315. Default is empty\&.
  316. .TP
  317. .B OAUTH2_USER_CREATION
  318. Set to 1 to authorize OAuth2 user creation\&.
  319. .br
  320. Disabled by default\&.
  321. .TP
  322. .B RUN_MIGRATIONS
  323. Set to 1 to run database migrations\&.
  324. .br
  325. Disabled by default\&.
  326. .TP
  327. .B CREATE_ADMIN
  328. Set to 1 to create an admin user from environment variables\&.
  329. .br
  330. Disabled by default\&.
  331. .TP
  332. .B ADMIN_USERNAME
  333. Admin user login, used only if $CREATE_ADMIN is enabled\&.
  334. .br
  335. Default is empty\&.
  336. .TP
  337. .B ADMIN_USERNAME_FILE
  338. Path to a secret key exposed as a file, it should contain $ADMIN_USERNAME value\&.
  339. .br
  340. Default is empty\&.
  341. .TP
  342. .B ADMIN_PASSWORD
  343. Admin user password, used only if $CREATE_ADMIN is enabled\&.
  344. .br
  345. Default is empty\&.
  346. .TP
  347. .B ADMIN_PASSWORD_FILE
  348. Path to a secret key exposed as a file, it should contain $ADMIN_PASSWORD value\&.
  349. .br
  350. Default is empty\&.
  351. .TP
  352. .B POCKET_CONSUMER_KEY
  353. Pocket consumer API key for all users\&.
  354. .br
  355. Default is empty\&.
  356. .TP
  357. .B POCKET_CONSUMER_KEY_FILE
  358. Path to a secret key exposed as a file, it should contain $POCKET_CONSUMER_KEY value\&.
  359. .br
  360. Default is empty\&.
  361. .TP
  362. .B PROXY_IMAGES
  363. Avoids mixed content warnings for external images: http-only, all, or none\&.
  364. .br
  365. Default is http-only\&.
  366. .TP
  367. .B PROXY_IMAGE_URL
  368. Sets a server to proxy images through\&.
  369. .br
  370. Default is empty, miniflux does the proxying\&.
  371. .TP
  372. .B HTTP_CLIENT_TIMEOUT
  373. Time limit in seconds before the HTTP client cancel the request\&.
  374. .br
  375. Default is 20 seconds\&.
  376. .TP
  377. .B HTTP_CLIENT_MAX_BODY_SIZE
  378. Maximum body size for HTTP requests in Mebibyte (MiB)\&.
  379. .br
  380. Default is 15 MiB\&.
  381. .TP
  382. .B HTTP_CLIENT_PROXY
  383. Proxy URL for HTTP client\&.
  384. .br
  385. Default is empty\&.
  386. .TP
  387. .B HTTP_CLIENT_USER_AGENT
  388. The default User-Agent header to use for the HTTP client. Can be overridden in per-feed settings\&.
  389. .br
  390. When empty, Miniflux uses a default User-Agent that includes the Miniflux version\&.
  391. .br
  392. Default is empty.
  393. .TP
  394. .B AUTH_PROXY_HEADER
  395. Proxy authentication HTTP header\&.
  396. .br
  397. Default is empty.
  398. .TP
  399. .B AUTH_PROXY_USER_CREATION
  400. Set to 1 to create users based on proxy authentication information\&.
  401. .br
  402. Disabled by default\&.
  403. .TP
  404. .B MAINTENANCE_MODE
  405. Set to 1 to enable maintenance mode\&.
  406. .br
  407. Disabled by default\&.
  408. .TP
  409. .B MAINTENANCE_MESSAGE
  410. Define a custom maintenance message\&.
  411. .br
  412. Default is "Miniflux is currently under maintenance"\&.
  413. .TP
  414. .B WATCHDOG
  415. Enable or disable Systemd watchdog\&.
  416. .br
  417. Enabled by default\&.
  418. .TP
  419. .B INVIDIOUS_INSTANCE
  420. Set a custom invidious instance to use\&.
  421. .br
  422. Default is yewtu.be\&.
  423. .TP
  424. .B PROXY_PRIVATE_KEY
  425. Set a custom custom private key used to sign proxified media url\&.
  426. .br
  427. Default is randomly generated at startup\&.
  428. .SH AUTHORS
  429. .P
  430. Miniflux is written and maintained by Fr\['e]d\['e]ric Guillot\&.
  431. .SH "COPYRIGHT"
  432. .P
  433. Miniflux is released under the Apache 2.0 license\&.