'{{ 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" "admin" }}', 'allow_anonymous' => {{ getenv "FRESHRSS_ALLOW_ANONYMOUS" "false" | conv.ToBool }}, 'allow_anonymous_refresh' => {{ getenv "FRESHRSS_ALLOW_ANONYMOUS_REFRESH" "false" | conv.ToBool }}, 'auth_type' => '{{ getenv "FRESHRSS_AUTH_TYPE" "form" }}', 'api_enabled' => {{ getenv "FRESHRSS_API_ENABLED" "false" | conv.ToBool }}, 'unsafe_autologin_enabled' => {{ getenv "FRESHRSS_UNSAFE_AUTOLOGIN_ENABLED" "false" | conv.ToBool }}, 'simplepie_syslog_enabled' => {{ getenv "FRESHRSS_SIMPLEPIE_SYSLOG_ENABLED" "true" | conv.ToBool }}, 'pubsubhubbub_enabled' => {{ getenv "FRESHRSS_PUBSUBHUBBUB_ENABLED" "false" | conv.ToBool }}, 'allow_robots' => {{ getenv "FRESHRSS_ALLOW_ROBOTS" "false" | conv.ToBool }}, 'allow_referrer' => {{ getenv "FRESHRSS_ALLOW_REFERRER" "false" | conv.ToBool }}, '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' => PHP_INT_MAX, '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 (getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" "true" | conv.ToBool) }} CURLOPT_SSL_VERIFYHOST => {{ getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" }}, {{- end }} {{- if not (getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" "true" | conv.ToBool) }} CURLOPT_SSL_VERIFYPEER => {{ getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" }}, {{- end }} {{- if not (getenv "FRESHRSS_CURLOPT_PROXYTYPE" "true" | conv.ToBool) }} CURLOPT_PROXYTYPE => {{ getenv "FRESHRSS_CURLOPT_PROXYTYPE" }}, {{- end }} {{- if not (getenv "FRESHRSS_CURLOPT_PROXY" "true" | conv.ToBool ) }} CURLOPT_PROXY => '{{ getenv "FRESHRSS_CURLOPT_PROXY" }}', {{- end }} {{- if not (getenv "FRESHRSS_CURLOPT_PROXYPORT" "true" | conv.ToBool ) }} CURLOPT_PROXYPORT => {{ getenv "FRESHRSS_CURLOPT_PROXYPORT" }}, {{- end }} {{- if not (getenv "FRESHRSS_CURLOPT_PROXYAUTH" "true" | conv.ToBool ) }} CURLOPT_PROXYAUTH => {{ getenv "FRESHRSS_CURLOPT_PROXYAUTH" }}, {{- end }} {{- if not (getenv "FRESHRSS_CURLOPT_PROXYUSERPWD" "true" | conv.ToBool ) }} CURLOPT_PROXYUSERPWD => '{{ getenv "FRESHRSS_CURLOPT_PROXYUSERPWD" }}', {{- end }} ), 'db' => array( 'type' => '{{ getenv "FRESHRSS_DB_TYPE" "sqlite" }}', 'host' => '{{ getenv "FRESHRSS_DB_HOST" "localhost" }}', 'port' => '{{ getenv "FRESHRSS_DB_PORT" }}', '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, 'trusted_sources' => [ {{- range (getenv "FRESHRSS_TRUSTED_SOURCES" "127.0.0.0/8,::1/128" | strings.Split ",") }} '{{ . | strings.TrimSpace }}', {{- end }} ] );