homelab/roles/freshrss/tasks/main.yml
Ivan Reshetnikov da696836a8
Adjust freshrss settings
- Extend session duration
- Configure background jobs
2024-11-09 17:50:18 +05:00

32 lines
1.1 KiB
YAML

---
- name: Create FreshRSS volumes
become: true
community.docker.docker_volume:
name: "{{ item }}"
loop:
- freshrss
- freshrss-extensions
- name: Run FreshRSS container
become: true
community.docker.docker_container:
name: freshrss-1
image: freshrss/freshrss:1.24.3
env:
TZ: "{{ tz }}"
CRON_MIN: "{{ cron_min }}"
OIDC_ENABLED: "{{ oidc_enabled | string }}"
OIDC_PROVIDER_METADATA_URL: "{{ oidc_provider_metadata_url }}"
OIDC_CLIENT_ID: "{{ oidc_client_id }}"
OIDC_CLIENT_SECRET: "{{ oidc_client_secret }}"
OIDC_CLIENT_CRYPTO_KEY: "{{ oidc_client_crypto_key }}"
OIDC_REMOTE_USER_CLAIM: "{{ oidc_remote_user_claim }}"
OIDC_SESSION_INACTIVITY_TIMEOUT: "{{ oidc_session_inactivity_timeout | string }}"
OIDC_SESSION_MAX_DURATION: "{{ oidc_session_max_duration | string }}"
OIDC_SCOPES: "{{ oidc_scopes }}"
OIDC_X_FORWARDED_HEADERS: "{{ oidc_x_forwarded_headers }}"
networks:
- name: haproxy
- name: postgresql
volumes:
- freshrss:/var/www/FreshRSS/data
- freshrss-extensions:/var/www/FreshRSS/extensions