miniflux.1 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. .\" Manpage for miniflux.
  2. .TH "MINIFLUX" "1" "September 28, 2020" "\ \&" "\ \&"
  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\&.
  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 \-i
  43. .RS 4
  44. Show application information\&.
  45. .RE
  46. .PP
  47. .B \-info
  48. .RS 4
  49. Show application information\&.
  50. .RE
  51. .PP
  52. .B \-migrate
  53. .RS 4
  54. Run SQL migrations\&.
  55. .RE
  56. .PP
  57. .B \-reset-feed-errors
  58. .RS 4
  59. Clear all feed errors for all users\&.
  60. .RE
  61. .PP
  62. .B \-reset-password
  63. .RS 4
  64. Reset user password\&.
  65. .RE
  66. .PP
  67. .B \-v
  68. .RS 4
  69. Show application version\&.
  70. .RE
  71. .PP
  72. .B \-version
  73. .RS 4
  74. Show application version\&.
  75. .RE
  76. .SH CONFIGURATION FILE
  77. The configuration file is a text file that follow these rules:
  78. .LP
  79. - Miniflux expects each line to be in KEY=VALUE format.
  80. .br
  81. - Lines beginning with # are processed as comments and ignored.
  82. .br
  83. - Blank lines are ignored.
  84. .br
  85. - There is no variable interpolation.
  86. .PP
  87. Keys are the same as the environment variables described below.
  88. .br
  89. Environment variables override the values defined in the config file.
  90. .SH ENVIRONMENT
  91. .TP
  92. .B DEBUG
  93. Set the value to 1 to enable debug logs\&.
  94. .TP
  95. .B LOG_DATE_TIME
  96. Display the date and time in log messages\&.
  97. .TP
  98. .B WORKER_POOL_SIZE
  99. Number of background workers (default is 5)\&.
  100. .TP
  101. .B POLLING_FREQUENCY
  102. Refresh interval in minutes for feeds (default is 60 minutes)\&.
  103. .TP
  104. .B BATCH_SIZE
  105. Number of feeds to send to the queue for each interval (default is 10)\&.
  106. .TP
  107. .B POLLING_SCHEDULER
  108. Scheduler used for polling feeds. Possible values are "round_robin" (default) or "entry_frequency"\&.
  109. .IP
  110. The maximum number of feeds polled for a given period is subject to POLLING_FREQUENCY and BATCH_SIZE\&.
  111. .IP
  112. 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\&.
  113. .IP
  114. The actual number of feeds polled will not exceed the maximum number of feeds that could be polled for a given period\&.
  115. .TP
  116. .B SCHEDULER_ENTRY_FREQUENCY_MAX_INTERVAL
  117. Maximum interval in minutes for the entry frequency scheduler (default is 24 hours)\&.
  118. .TP
  119. .B SCHEDULER_ENTRY_FREQUENCY_MIN_INTERVAL
  120. Minimum interval in minutes for the entry frequency scheduler (default is 5 minutes)\&.
  121. .TP
  122. .B DATABASE_URL
  123. Postgresql connection parameters\&.
  124. .br
  125. Default is "user=postgres password=postgres dbname=miniflux2 sslmode=disable"\&.
  126. .TP
  127. .B DATABASE_URL_FILE
  128. Path to a secret key exposed as a file, it should contain $DATABASE_URL value\&.
  129. .TP
  130. .B DATABASE_MAX_CONNS
  131. Maximum number of database connections (default is 20)\&.
  132. .TP
  133. .B DATABASE_MIN_CONNS
  134. Minimum number of database connections (default is 1)\&.
  135. .TP
  136. .B LISTEN_ADDR
  137. Address to listen on. Default is 127.0.0.1:8080\&.
  138. .br
  139. Use absolute path to listen on Unix socket (/var/run/miniflux.sock)\&.
  140. .TP
  141. .B PORT
  142. Override LISTEN_ADDR to 0.0.0.0:$PORT\&.
  143. .TP
  144. .B BASE_URL
  145. Base URL to generate HTML links and base path for cookies\&.
  146. .br
  147. Default is http://localhost/\&.
  148. .TP
  149. .B CLEANUP_FREQUENCY_HOURS
  150. Cleanup job frequency. Remove old sessions and archive entries\&.
  151. .br
  152. Default is 24 hours\&.
  153. .TP
  154. .B CLEANUP_ARCHIVE_READ_DAYS
  155. Number of days after marking read items as removed\&.
  156. .br
  157. Default is 60 days\&.
  158. .TP
  159. .B CLEANUP_ARCHIVE_UNREAD_DAYS
  160. Number of days after marking unread items as removed\&.
  161. .br
  162. Default is 180 days\&.
  163. .TP
  164. .B CLEANUP_REMOVE_SESSIONS_DAYS
  165. Number of days after removing old sessions from the database\&.
  166. .br
  167. Default is 30 days\&.
  168. .TP
  169. .B HTTPS
  170. Forces cookies to use secure flag and send HSTS header\&.
  171. .TP
  172. .B DISABLE_HSTS
  173. Disable HTTP Strict Transport Security header if \fBHTTPS\fR is set\&.
  174. .TP
  175. .B DISABLE_HTTP_SERVICE
  176. Set the value to 1 to disable the HTTP service\&.
  177. .TP
  178. .B DISABLE_SCHEDULER_SERVICE
  179. Set the value to 1 to disable the internal scheduler service\&.
  180. .TP
  181. .B CERT_FILE
  182. Path to SSL certificate\&.
  183. .TP
  184. .B KEY_FILE
  185. Path to SSL private key\&.
  186. .TP
  187. .B CERT_DOMAIN
  188. Use Let's Encrypt to get automatically a certificate for this domain\&.
  189. .TP
  190. .B CERT_CACHE
  191. Let's Encrypt cache directory (default is /tmp/cert_cache)\&.
  192. .TP
  193. .B METRICS_COLLECTOR
  194. Set to 1 to enable metrics collector. Expose a /metrics endpoint for Prometheus.
  195. .br
  196. Disabled by default\&.
  197. .TP
  198. .B METRICS_REFRESH_INTERVAL
  199. Refresh interval to collect database metrics\&. Default is 60 seconds\&.
  200. .TP
  201. .B METRICS_ALLOWED_NETWORKS
  202. List of networks allowed to access the metrics endpoint (comma-separated values)\&.
  203. .br
  204. Default is 127.0.0.1/8\&.
  205. .TP
  206. .B OAUTH2_PROVIDER
  207. OAuth2 provider to use\&. Only google is supported\&.
  208. .TP
  209. .B OAUTH2_CLIENT_ID
  210. OAuth2 client ID\&.
  211. .TP
  212. .B OAUTH2_CLIENT_ID_FILE
  213. Path to a secret key exposed as a file, it should contain $OAUTH2_CLIENT_ID value\&.
  214. .TP
  215. .B OAUTH2_CLIENT_SECRET
  216. OAuth2 client secret\&.
  217. .TP
  218. .B OAUTH2_CLIENT_SECRET_FILE
  219. Path to a secret key exposed as a file, it should contain $OAUTH2_CLIENT_SECRET value\&.
  220. .TP
  221. .B OAUTH2_REDIRECT_URL
  222. OAuth2 redirect URL\&.
  223. .TP
  224. .B OAUTH2_OIDC_DISCOVERY_ENDPOINT
  225. OpenID Connect discovery endpoint\&.
  226. .TP
  227. .B OAUTH2_USER_CREATION
  228. Set to 1 to authorize OAuth2 user creation\&.
  229. .TP
  230. .B RUN_MIGRATIONS
  231. Set to 1 to run database migrations\&.
  232. .TP
  233. .B CREATE_ADMIN
  234. Set to 1 to create an admin user from environment variables\&.
  235. .TP
  236. .B ADMIN_USERNAME
  237. Admin user login, used only if $CREATE_ADMIN is enabled\&.
  238. .TP
  239. .B ADMIN_USERNAME_FILE
  240. Path to a secret key exposed as a file, it should contain $ADMIN_USERNAME value\&.
  241. .TP
  242. .B ADMIN_PASSWORD
  243. Admin user password, used only if $CREATE_ADMIN is enabled\&.
  244. .TP
  245. .B ADMIN_PASSWORD_FILE
  246. Path to a secret key exposed as a file, it should contain $ADMIN_PASSWORD value\&.
  247. .TP
  248. .B POCKET_CONSUMER_KEY
  249. Pocket consumer API key for all users\&.
  250. .TP
  251. .B POCKET_CONSUMER_KEY_FILE
  252. Path to a secret key exposed as a file, it should contain $POCKET_CONSUMER_KEY value\&.
  253. .TP
  254. .B PROXY_IMAGES
  255. Avoids mixed content warnings for external images: http-only, all, or none\&.
  256. .br
  257. Default is http-only\&.
  258. .TP
  259. .B HTTP_CLIENT_TIMEOUT
  260. Time limit in seconds before the HTTP client cancel the request\&.
  261. .br
  262. Default is 20 seconds\&.
  263. .TP
  264. .B HTTP_CLIENT_MAX_BODY_SIZE
  265. Maximum body size for HTTP requests in Mebibyte (MiB)\&.
  266. .br
  267. Default is 15 MiB\&.
  268. .TP
  269. .B HTTP_CLIENT_PROXY
  270. Proxy URL for HTTP client\&.
  271. .br
  272. Default is empty\&.
  273. .TP
  274. .B HTTP_CLIENT_USER_AGENT
  275. The default User-Agent header to use for the HTTP client. Can be overridden in per-feed settings\&.
  276. .br
  277. Default is empty. When empty, Miniflux uses a default User-Agent that includes the Miniflux version\&.
  278. .TP
  279. .B AUTH_PROXY_HEADER
  280. Proxy authentication HTTP header\&.
  281. .TP
  282. .B AUTH_PROXY_USER_CREATION
  283. Set to 1 to create users based on proxy authentication information\&.
  284. .TP
  285. .B MAINTENANCE_MODE
  286. Set to 1 to enable maintenance mode\&.
  287. .TP
  288. .B MAINTENANCE_MESSAGE
  289. Define a custom maintenance message\&.
  290. .SH AUTHORS
  291. .P
  292. Miniflux is written and maintained by Fr\['e]d\['e]ric Guillot\&.
  293. .SH "COPYRIGHT"
  294. .P
  295. Miniflux is released under the Apache 2.0 license\&.