2019-10-02 07:43:32 +00:00
|
|
|
<?php
|
|
|
|
return array(
|
|
|
|
'environment' => '{{ getenv "FRESHRSS_ENVIRONMENT" "production" }}',
|
|
|
|
'salt' => '{{ getenv "FRESHRSS_SALT" }}',
|
|
|
|
'base_url' => '{{ getenv "FRESHRSS_BASE_URL" "http://localhost/" }}',
|
|
|
|
'auto_update_url' => 'https://update.freshrss.org',
|
|
|
|
'language' => '{{ getenv "FRESHRSS_LANGUAGE" "en" }}',
|
|
|
|
'title' => '{{ getenv "FRESHRSS_TITLE" "FreshRSS" }}',
|
|
|
|
'meta_description' => '{{ getenv "FRESHRSS_META_DESCRIPTION" }}',
|
|
|
|
'default_user' => '{{ getenv "FRESHRSS_DEFAULT_USER" "_" }}',
|
|
|
|
'allow_anonymous' => {{ getenv "FRESHRSS_ALLOW_ANONYMOUS" "false" }},
|
|
|
|
'allow_anonymous_refresh' => {{ getenv "FRESHRSS_ALLOW_ANONYMOUS_REFRESH" "false" }},
|
|
|
|
'auth_type' => '{{ getenv "FRESHRSS_AUTH_TYPE" "form" }}',
|
|
|
|
'api_enabled' => {{ getenv "FRESHRSS_API_ENABLED" "false" }},
|
|
|
|
'unsafe_autologin_enabled' => {{ getenv "FRESHRSS_UNSAFE_AUTOLOGIN_ENABLED" "false" }},
|
|
|
|
'simplepie_syslog_enabled' => {{ getenv "FRESHRSS_SIMPLEPIE_SYSLOG_ENABLED" "true" }},
|
|
|
|
'pubsubhubbub_enabled' => {{ getenv "FRESHRSS_PUBSUBHUBBUB_ENABLED" "false" }},
|
|
|
|
'allow_robots' => {{ getenv "FRESHRSS_ALLOW_ROBOTS" "false" }},
|
|
|
|
'allow_referrer' => {{ getenv "FRESHRSS_ALLOW_REFERRER" "false" }},
|
|
|
|
|
|
|
|
'limits' => array(
|
|
|
|
'cookie_duration' => {{ getenv "FRESHRSS_LIMITS_COOKIE_DURATION" "2592000" }},
|
|
|
|
'cache_duration' => {{ getenv "FRESHRSS_LIMITS_CACHE_DURATION" "800" }},
|
|
|
|
'timeout' => {{ getenv "FRESHRSS_LIMITS_TIMEOUT" "15" }},
|
|
|
|
'max_inactivity' => {{ getenv "FRESHRSS_LIMITS_MAX_INACTIVITY" "10800" }},
|
|
|
|
'max_feeds' => {{ getenv "FRESHRSS_LIMITS_MAX_FEEDS" "16384" }},
|
|
|
|
'max_categories' => {{ getenv "FRESHRSS_LIMITS_MAX_CATEGORIES" "16384" }},
|
|
|
|
'max_registrations' => {{ getenv "FRESHRSS_LIMITS_MAX_REGISTRATIONS" "1" }},
|
|
|
|
),
|
|
|
|
|
|
|
|
'curl_options' => array(
|
|
|
|
{{- if not (bool (getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" "true")) }}
|
|
|
|
CURLOPT_SSL_VERIFYHOST => {{ getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" }},
|
|
|
|
{{- end }}
|
|
|
|
{{- if not (bool (getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" "true")) }}
|
|
|
|
CURLOPT_SSL_VERIFYPEER => {{ getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" }},
|
|
|
|
{{- end }}
|
|
|
|
{{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXYTYPE" "true")) }}
|
|
|
|
CURLOPT_PROXYTYPE => {{ getenv "FRESHRSS_CURLOPT_PROXYTYPE" }},
|
|
|
|
{{- end }}
|
|
|
|
{{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXY" "true" )) }}
|
|
|
|
CURLOPT_PROXY => '{{ getenv "FRESHRSS_CURLOPT_PROXY" }}',
|
|
|
|
{{- end }}
|
|
|
|
{{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXYPORT" "true" )) }}
|
|
|
|
CURLOPT_PROXYPORT => {{ getenv "FRESHRSS_CURLOPT_PROXYPORT" }},
|
|
|
|
{{- end }}
|
|
|
|
{{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXYAUTH" "true" )) }}
|
|
|
|
CURLOPT_PROXYAUTH => {{ getenv "FRESHRSS_CURLOPT_PROXYAUTH" }},
|
|
|
|
{{- end }}
|
|
|
|
{{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXYUSERPWD" "true" )) }}
|
|
|
|
CURLOPT_PROXYUSERPWD => '{{ getenv "FRESHRSS_CURLOPT_PROXYUSERPWD" }}',
|
|
|
|
{{- end }}
|
|
|
|
),
|
|
|
|
|
|
|
|
'db' => array(
|
|
|
|
'type' => '{{ getenv "FRESHRSS_DB_TYPE" "sqlite" }}',
|
|
|
|
'host' => '{{ getenv "FRESHRSS_DB_HOST" "localhost" }}',
|
2019-10-03 12:19:06 +00:00
|
|
|
'port' => '{{ getenv "FRESHRSS_DB_PORT" }}',
|
2019-10-02 07:43:32 +00:00
|
|
|
'user' => '{{ getenv "FRESHRSS_DB_USER" }}',
|
|
|
|
'password' => '{{ getenv "FRESHRSS_DB_PASSWORD" }}',
|
|
|
|
'base' => '{{ getenv "FRESHRSS_DB_BASE" }}',
|
|
|
|
'prefix' => '{{ getenv "FRESHRSS_DB_PREFIX" "freshrss_" }}',
|
2019-10-05 11:53:22 +00:00
|
|
|
'connection_uri_params' => '{{ getenv "FRESHRSS_DB_CONNECTION_URI_PARAMS" }}',
|
2019-10-02 07:43:32 +00:00
|
|
|
'pdo_options' => array(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
'extensions_enabled' => array(
|
|
|
|
{{- range (getenv "FRESHRSS_EXTENSIONS_ENABLED" "Tumblr-GDPR" | strings.Split ",") }}
|
|
|
|
'{{ . | strings.TrimSpace }}' => true,
|
|
|
|
{{- end }}
|
|
|
|
),
|
|
|
|
|
|
|
|
'disable_update' => true,
|
|
|
|
);
|