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" }}',
|
2022-11-25 13:15:55 +00:00
|
|
|
'default_user' => '{{ getenv "FRESHRSS_DEFAULT_USER" "admin" }}',
|
2019-10-02 07:43:32 +00:00
|
|
|
'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" }},
|
2019-10-05 21:25:39 +00:00
|
|
|
'max_inactivity' => PHP_INT_MAX,
|
2019-10-02 07:43:32 +00:00
|
|
|
'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(
|
2022-06-28 20:27:29 +00:00
|
|
|
{{- if not (getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" "true" | conv.ToBool) }}
|
2019-10-02 07:43:32 +00:00
|
|
|
CURLOPT_SSL_VERIFYHOST => {{ getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" }},
|
|
|
|
{{- end }}
|
2022-06-28 20:27:29 +00:00
|
|
|
{{- if not (getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" "true" | conv.ToBool) }}
|
2019-10-02 07:43:32 +00:00
|
|
|
CURLOPT_SSL_VERIFYPEER => {{ getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" }},
|
|
|
|
{{- end }}
|
2022-06-28 20:27:29 +00:00
|
|
|
{{- if not (getenv "FRESHRSS_CURLOPT_PROXYTYPE" "true" | conv.ToBool) }}
|
2019-10-02 07:43:32 +00:00
|
|
|
CURLOPT_PROXYTYPE => {{ getenv "FRESHRSS_CURLOPT_PROXYTYPE" }},
|
|
|
|
{{- end }}
|
2022-06-28 20:27:29 +00:00
|
|
|
{{- if not (getenv "FRESHRSS_CURLOPT_PROXY" "true" | conv.ToBool ) }}
|
2019-10-02 07:43:32 +00:00
|
|
|
CURLOPT_PROXY => '{{ getenv "FRESHRSS_CURLOPT_PROXY" }}',
|
|
|
|
{{- end }}
|
2022-06-28 20:27:29 +00:00
|
|
|
{{- if not (getenv "FRESHRSS_CURLOPT_PROXYPORT" "true" | conv.ToBool ) }}
|
2019-10-02 07:43:32 +00:00
|
|
|
CURLOPT_PROXYPORT => {{ getenv "FRESHRSS_CURLOPT_PROXYPORT" }},
|
|
|
|
{{- end }}
|
2022-06-28 20:27:29 +00:00
|
|
|
{{- if not (getenv "FRESHRSS_CURLOPT_PROXYAUTH" "true" | conv.ToBool ) }}
|
2019-10-02 07:43:32 +00:00
|
|
|
CURLOPT_PROXYAUTH => {{ getenv "FRESHRSS_CURLOPT_PROXYAUTH" }},
|
|
|
|
{{- end }}
|
2022-06-28 20:27:29 +00:00
|
|
|
{{- if not (getenv "FRESHRSS_CURLOPT_PROXYUSERPWD" "true" | conv.ToBool ) }}
|
2019-10-02 07:43:32 +00:00
|
|
|
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_" }}',
|
|
|
|
'pdo_options' => array(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
'extensions_enabled' => array(
|
|
|
|
{{- range (getenv "FRESHRSS_EXTENSIONS_ENABLED" "Tumblr-GDPR" | strings.Split ",") }}
|
|
|
|
'{{ . | strings.TrimSpace }}' => true,
|
|
|
|
{{- end }}
|
|
|
|
),
|
|
|
|
|
|
|
|
'disable_update' => true,
|
2022-11-25 13:15:55 +00:00
|
|
|
|
|
|
|
'trusted_sources' => [
|
|
|
|
{{- range (getenv "FRESHRSS_TRUSTED_SOURCES" "127.0.0.0/8,::1/128" | strings.Split ",") }}
|
|
|
|
'{{ . | strings.TrimSpace }}',
|
|
|
|
{{- end }}
|
|
|
|
]
|
2019-10-02 07:43:32 +00:00
|
|
|
);
|