Create config.default.php
Browse files- config.default.php +213 -0
config.default.php
ADDED
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
# Do not modify this file, which defines default values,
|
4 |
+
# but instead edit `./data/config.php` after the install process is completed,
|
5 |
+
# or edit `./data/config.custom.php` before the install process.
|
6 |
+
return array(
|
7 |
+
|
8 |
+
# Set to `development` to get additional error messages,
|
9 |
+
# or to `production` to get only the most important messages.
|
10 |
+
'environment' => 'production',
|
11 |
+
|
12 |
+
# Used to make crypto more unique. Generated during install.
|
13 |
+
'salt' => '',
|
14 |
+
|
15 |
+
# Specify address of the FreshRSS instance,
|
16 |
+
# used when building absolute URLs, e.g. for WebSub.
|
17 |
+
# Examples:
|
18 |
+
# https://example.net/FreshRSS/p/
|
19 |
+
# https://freshrss.example.net/
|
20 |
+
'base_url' => '',
|
21 |
+
|
22 |
+
# Specify address of the FreshRSS auto-update server.
|
23 |
+
'auto_update_url' => 'https://update.freshrss.org',
|
24 |
+
|
25 |
+
# Natural language of the user interface, e.g. `en`, `fr`.
|
26 |
+
'language' => 'en',
|
27 |
+
|
28 |
+
# Title of this FreshRSS instance in the Web user interface.
|
29 |
+
'title' => 'FreshRSS',
|
30 |
+
|
31 |
+
# Meta description used when `allow_robots` is true.
|
32 |
+
'meta_description' => '',
|
33 |
+
|
34 |
+
# Override logo of this FreshRSS instance in the Web user interface.
|
35 |
+
# It is rendered inside an <a>...</a> element and must be valid HTML or text.
|
36 |
+
# Example: '<img class="logo" src="https://example.net/Hello.png" alt="Logo Example" /> Hello'
|
37 |
+
'logo_html' => '',
|
38 |
+
|
39 |
+
# Name of the default user. Also used as the public user for anonymous reading.
|
40 |
+
'default_user' => '_',
|
41 |
+
|
42 |
+
# Force users to validate their email address. If `true`, an email with a
|
43 |
+
# validation URL is sent during registration, and users cannot access their
|
44 |
+
# feed if they didn’t access this URL.
|
45 |
+
# Note: it is recommended to not enable it with PHP < 5.5 (emails cannot be
|
46 |
+
# sent).
|
47 |
+
'force_email_validation' => false,
|
48 |
+
|
49 |
+
# Allow or not visitors without login to see the articles
|
50 |
+
# of the default user.
|
51 |
+
'allow_anonymous' => false,
|
52 |
+
|
53 |
+
# Allow or not anonymous users to start the refresh process.
|
54 |
+
'allow_anonymous_refresh' => false,
|
55 |
+
|
56 |
+
# Login method:
|
57 |
+
# `none` is without password and shows only the default user;
|
58 |
+
# `form` is a conventional Web login form;
|
59 |
+
# `http_auth` is an access controlled by the HTTP Web server (e.g. `/FreshRSS/p/i/.htaccess` for Apache)
|
60 |
+
# if you use `http_auth`, remember to protect only `/FreshRSS/p/i/`,
|
61 |
+
# and in particular not protect `/FreshRSS/p/api/` if you would like to use the API (different login system).
|
62 |
+
'auth_type' => 'form',
|
63 |
+
|
64 |
+
# When using http_auth, automatically register any unknown user
|
65 |
+
'http_auth_auto_register' => true,
|
66 |
+
|
67 |
+
# Optionally, you can specify the $_SERVER key containing the email address used when registering
|
68 |
+
# the user (e.g. REMOTE_USER_EMAIL).
|
69 |
+
'http_auth_auto_register_email_field' => '',
|
70 |
+
|
71 |
+
# Allow or not the use of the API, used for mobile apps.
|
72 |
+
# End-point is https://freshrss.example.net/api/greader.php
|
73 |
+
# You need to set the user’s API password.
|
74 |
+
'api_enabled' => false,
|
75 |
+
|
76 |
+
# Allow or not the use of an unsafe login,
|
77 |
+
# by providing username and password in the login URL:
|
78 |
+
# https://example.net/FreshRSS/p/i/?c=auth&a=login&u=alice&p=1234
|
79 |
+
'unsafe_autologin_enabled' => false,
|
80 |
+
|
81 |
+
# Enable or not the use of syslog to log the activity of
|
82 |
+
# SimplePie, which is retrieving RSS feeds via HTTP requests.
|
83 |
+
'simplepie_syslog_enabled' => true,
|
84 |
+
|
85 |
+
# Enable or not support of PubSubHubbub.
|
86 |
+
# /!\ It should NOT be enabled if base_url is not reachable by an external server.
|
87 |
+
'pubsubhubbub_enabled' => false,
|
88 |
+
|
89 |
+
# Allow or not Web robots (e.g. search engines) in HTML headers.
|
90 |
+
'allow_robots' => false,
|
91 |
+
|
92 |
+
# If true does nothing, if false restricts HTTP Referer via: meta referrer origin
|
93 |
+
'allow_referrer' => false,
|
94 |
+
|
95 |
+
# Number of feeds to refresh in parallel from the Web user interface.
|
96 |
+
# Faster with higher values. Reduce for server with little memory or database issues.
|
97 |
+
'nb_parallel_refresh' => 10,
|
98 |
+
|
99 |
+
'limits' => array(
|
100 |
+
|
101 |
+
# Duration in seconds of the login cookie.
|
102 |
+
'cookie_duration' => FreshRSS_Auth::DEFAULT_COOKIE_DURATION,
|
103 |
+
|
104 |
+
# Duration in seconds of the SimplePie cache,
|
105 |
+
# during which a query to the RSS feed will return the local cached version.
|
106 |
+
# Especially important for multi-user setups.
|
107 |
+
'cache_duration' => 800,
|
108 |
+
|
109 |
+
# SimplePie HTTP request timeout in seconds.
|
110 |
+
'timeout' => 20,
|
111 |
+
|
112 |
+
# If a user has not used FreshRSS for more than x seconds,
|
113 |
+
# then its feeds are not refreshed anymore.
|
114 |
+
'max_inactivity' => PHP_INT_MAX,
|
115 |
+
|
116 |
+
# Max number of feeds for a user.
|
117 |
+
'max_feeds' => 131072,
|
118 |
+
|
119 |
+
# Max number of categories for a user.
|
120 |
+
'max_categories' => 16384,
|
121 |
+
|
122 |
+
# Max number of accounts that anonymous users can create (only for Web form login type)
|
123 |
+
# 0 for an unlimited number of accounts
|
124 |
+
# 1 is to not allow user registrations (1 is corresponding to the admin account)
|
125 |
+
'max_registrations' => 1,
|
126 |
+
),
|
127 |
+
|
128 |
+
# Options used by cURL when making HTTP requests, e.g. when the SimplePie library retrieves feeds.
|
129 |
+
# https://php.net/manual/function.curl-setopt
|
130 |
+
'curl_options' => array(
|
131 |
+
# Options to disable SSL/TLS certificate check (e.g. for self-signed HTTPS)
|
132 |
+
//CURLOPT_SSL_VERIFYHOST => 0,
|
133 |
+
//CURLOPT_SSL_VERIFYPEER => false,
|
134 |
+
|
135 |
+
# Options to use a proxy for retrieving feeds.
|
136 |
+
//CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
|
137 |
+
//CURLOPT_PROXY => '127.0.0.1',
|
138 |
+
//CURLOPT_PROXYPORT => 8080,
|
139 |
+
//CURLOPT_PROXYAUTH => CURLAUTH_BASIC,
|
140 |
+
//CURLOPT_PROXYUSERPWD => 'user:password',
|
141 |
+
),
|
142 |
+
|
143 |
+
'db' => [
|
144 |
+
|
145 |
+
# Type of database: `sqlite` or `mysql` or 'pgsql'
|
146 |
+
'type' => 'sqlite',
|
147 |
+
|
148 |
+
# Database server
|
149 |
+
'host' => 'localhost',
|
150 |
+
|
151 |
+
# Database user
|
152 |
+
'user' => '',
|
153 |
+
|
154 |
+
# Database password
|
155 |
+
'password' => '',
|
156 |
+
|
157 |
+
# Database name
|
158 |
+
'base' => '',
|
159 |
+
|
160 |
+
# Tables prefix (useful if you use the same database for multiple things)
|
161 |
+
'prefix' => 'freshrss_',
|
162 |
+
|
163 |
+
# Additional connection string parameters, such as PostgreSQL 'sslmode=??;sslrootcert=??'
|
164 |
+
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
|
165 |
+
'connection_uri_params' => '',
|
166 |
+
|
167 |
+
# Additional PDO parameters, such as offered by MySQL https://php.net/ref.pdo-mysql
|
168 |
+
'pdo_options' => [
|
169 |
+
//PDO::MYSQL_ATTR_SSL_KEY => '/path/to/client-key.pem',
|
170 |
+
//PDO::MYSQL_ATTR_SSL_CERT => '/path/to/client-cert.pem',
|
171 |
+
//PDO::MYSQL_ATTR_SSL_CA => '/path/to/ca-cert.pem',
|
172 |
+
],
|
173 |
+
|
174 |
+
],
|
175 |
+
|
176 |
+
# Configuration to send emails. Be aware that PHP < 5.5 are not supported.
|
177 |
+
# These options are basically a mapping of the PHPMailer class attributes
|
178 |
+
# from the PHPMailer library.
|
179 |
+
#
|
180 |
+
# See https://phpmailer.github.io/PHPMailer/classes/PHPMailer-PHPMailer-PHPMailer.html#properties
|
181 |
+
'mailer' => 'mail', // 'mail' or 'smtp'
|
182 |
+
'smtp' => array(
|
183 |
+
'hostname' => '', // the domain used in the Message-ID header
|
184 |
+
'host' => 'localhost', // the SMTP server address
|
185 |
+
'port' => 25,
|
186 |
+
'auth' => false,
|
187 |
+
'auth_type' => '', // 'CRAM-MD5', 'LOGIN', 'PLAIN', 'XOAUTH2' or ''
|
188 |
+
'username' => '',
|
189 |
+
'password' => '',
|
190 |
+
'secure' => '', // '', 'ssl' or 'tls'
|
191 |
+
'from' => 'root@localhost',
|
192 |
+
),
|
193 |
+
|
194 |
+
# List of enabled FreshRSS extensions.
|
195 |
+
'extensions_enabled' => [
|
196 |
+
],
|
197 |
+
# Extensions configurations
|
198 |
+
'extensions' => [],
|
199 |
+
|
200 |
+
# Disable self-update,
|
201 |
+
'disable_update' => false,
|
202 |
+
|
203 |
+
# Trusted IPs (e.g. of last proxy) that are allowed to send unsafe HTTP headers.
|
204 |
+
# The connection IP used during FreshRSS setup is automatically added to this list.
|
205 |
+
# Will be checked against CONN_REMOTE_ADDR (if available, to be robust even when using Apache mod_remoteip)
|
206 |
+
# or REMOTE_ADDR environment variable.
|
207 |
+
# This array can be overridden by the TRUSTED_PROXY environment variable.
|
208 |
+
# Read the documentation before configuring this https://freshrss.github.io/FreshRSS/en/admins/09_AccessControl.html
|
209 |
+
'trusted_sources' => [
|
210 |
+
'127.0.0.0/8',
|
211 |
+
'::1/128',
|
212 |
+
]
|
213 |
+
);
|