xoxys.freshrss/templates/systemd/environments/freshrss.env.j2
Robert Kaussow ea719292e5
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2022-03-20 16:12:57 +01:00

68 lines
3.3 KiB
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
FRESHRSS_ENVIRONMENT=production
{% if freshrss_salt is defined and freshrss_salt %}
FRESHRSS_SALT={{ freshrss_salt }}
{% endif %}
FRESHRSS_BASE_URL={{ freshrss_base_url }}
FRESHRSS_LANGUAGE={{ freshrss_language }}
FRESHRSS_TITLE={{ freshrss_title }}
{% if freshrss_meta_description is defined and freshrss_meta_description %}
FRESHRSS_META_DESCRIPTION={{ freshrss_meta_description }}
{% endif %}
FRESHRSS_DEFAULT_USER={{ freshrss_default_user }}
FRESHRSS_DEFAULT_PASSWORD={{ freshrss_default_password }}
FRESHRSS_ALLOW_ANONYMOUS={{ freshrss_allow_anonymous | bool | lower }}
FRESHRSS_ALLOW_ANONYMOUS_REFRESH={{ freshrss_allow_anonymous_refresh | bool | lower }}
FRESHRSS_AUTH_TYPE={{ freshrss_auth_type }}
FRESHRSS_API_ENABLED={{ freshrss_api_enabled | bool | lower }}
FRESHRSS_UNSAFE_AUTOLOGIN_ENABLED={{ freshrss_unsafe_autologin_enabled | bool | lower }}
FRESHRSS_SIMPLEPIE_SYSLOG_ENABLED={{ freshrss_simplepie_syslog_enabled | bool | lower }}
FRESHRSS_PUBSUBHUBBUB_ENABLED={{ freshrss_pubsubhubbub_enabled | bool | lower }}
FRESHRSS_ALLOW_ROBOTS={{ freshrss_allow_robots | bool | lower }}
FRESHRSS_ALLOW_REFERRER={{ freshrss_allow_referrer | bool | lower }}
FRESHRSS_LIMITS_COOKIE_DURATION={{ freshrss_limits_cookie_duration }}
FRESHRSS_LIMITS_CACHE_DURATION={{ freshrss_limits_cache_duration }}
FRESHRSS_LIMITS_TIMEOUT={{ freshrss_limits_timeout }}
FRESHRSS_LIMITS_MAX_INACTIVITY={{ freshrss_limits_max_inactivity }}
FRESHRSS_LIMITS_MAX_FEEDS={{ freshrss_limits_max_feeds }}
FRESHRSS_LIMITS_MAX_CATEGORIES={{ freshrss_limits_max_categories }}
FRESHRSS_LIMITS_MAX_REGISTRATIONS={{ freshrss_limits_max_registrations }}
{% if freshrss_curlopt_ssl_verifyhost is defined and freshrss_curlopt_ssl_verifyhost %}
FRESHRSS_CURLOPT_SSL_VERIFYHOST={{ freshrss_curlopt_ssl_verifyhost }}
{% endif %}
{% if freshrss_curlopt_ssl_verifypeer is defined and freshrss_curlopt_ssl_verifypeer %}
FRESHRSS_CURLOPT_SSL_VERIFYPEER={{ freshrss_curlopt_ssl_verifypeer }}
{% endif %}
{% if freshrss_curlopt_proxytype is defined and freshrss_curlopt_proxytype %}
FRESHRSS_CURLOPT_PROXYTYPE={{ freshrss_curlopt_proxytype }}
{% endif %}
{% if freshrss_curlopt_proxy is defined and freshrss_curlopt_proxy %}
FRESHRSS_CURLOPT_PROXY={{ freshrss_curlopt_proxy }}
{% endif %}
{% if freshrss_curlopt_proxyport is defined and freshrss_curlopt_proxyport %}
FRESHRSS_CURLOPT_PROXYPORT={{ freshrss_curlopt_proxyport }}
{% endif %}
{% if freshrss_curlopt_proxyauth is defined and freshrss_curlopt_proxyauth %}
FRESHRSS_CURLOPT_PROXYAUTH={{ freshrss_curlopt_proxyauth }}
{% endif %}
{% if freshrss_curlopt_proxyuserpwd is defined and freshrss_curlopt_proxyuserpwd %}
FRESHRSS_CURLOPT_PROXYUSERPWD={{ freshrss_curlopt_proxyuserpwd }}
{% endif %}
FRESHRSS_DB_TYPE={{ freshrss_db_type }}
{% if freshrss_db_type != "sqlite" %}
{% if freshrss_db_type == "pgsql" %}
FRESHRSS_DB_HOST={{ freshrss_db_server }};sslmode={{ freshrss_db_ssl_mode }}
FRESHRSS_POSTGRES_SSL_ROOTCERT={{ freshrss_db_ssl_rootcert }}
{% else %}
FRESHRSS_DB_HOST={{ freshrss_db_server }}
{% endif %}
FRESHRSS_DB_PORT={{ freshrss_db_port }}
FRESHRSS_DB_USER={{ freshrss_db_user }}
FRESHRSS_DB_PASSWORD={{ freshrss_db_password }}
FRESHRSS_DB_BASE={{ freshrss_db_name }}
FRESHRSS_DB_PREFIX=freshrss_
{% endif %}
FRESHRSS_EXTENSIONS_ENABLED={{ freshrss_extensions_enabled | join(',') }}