: get from ttrss to freshrss

This commit is contained in:
VC
2024-08-09 17:52:07 +02:00
parent 92cfa55f77
commit d2cd65ba2f
7 changed files with 45 additions and 36 deletions

View File

@@ -1,17 +1,19 @@
server {
{% include './templates/header.conf.j2' %}
root /srv/http/rss.libertus.eu/;
root /srv/http/rss.libertus.eu/p;
index index.html index.htm index.php;
location ~ \.(js|css|png|jpg|jpeg|gif|svg|svgz)$ {
expires 2w;
log_not_found off;
}
location ~ /\.git {
deny all;
location ~ ^/(api/greader).php(/.*)+ {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
include fastcgi_params;
}
location ~ \.php$ {
try_files $uri $uri/ =404;
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;

View File

@@ -1,11 +0,0 @@
[Unit]
Description=ttrss_backend
After=network.target mysql.service postgresql.service
[Service]
User=www-data
ExecStart=/srv/http/rss.libertus.eu/update_daemon2.php
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,19 @@
---
- name: Install FreshRSS timer
ansible.builtin.template:
src: freshrss.timer.j2
dest: /etc/systemd/system/freshrss.timer
mode: "0o644"
- name: Install FreshRSS service
ansible.builtin.template:
src: freshrss.service.j2
dest: /etc/systemd/system/freshrss.service
mode: "0o644"
- name: Enable FreshRSS timer
ansible.builtin.service:
name: freshrss
enabled: true
state: started

View File

@@ -1,7 +1,7 @@
---
- name: Include ttrss for web1
ansible.builtin.include_tasks: ttrss.yml
- name: Include freshrss for web1
ansible.builtin.include_tasks: freshrss.yml
when: inventory_hostname == 'web1.dmz.mateu.be'
- name: Include matomo for web2
ansible.builtin.include_tasks: matomo.yml

View File

@@ -1,18 +0,0 @@
---
- name: Install git
ansible.builtin.package:
name: git
state: present
- name: Put systemd file for backend
ansible.builtin.copy:
src: files/ttrss_backend.service
dest: /etc/systemd/system/ttrss_backend.service
mode: "0o644"
- name: Enable and start service ttrss_backend
ansible.builtin.service:
name: ttrss_backend
enabled: true
state: started

View File

@@ -0,0 +1,8 @@
[Unit]
Description=FreshRSS get new content
Wants=freshrss.timer
[Service]
User=www-data
Type=simple
ExecStart=/usr/bin/php /srv/http/rss.libertus.eu/app/actualize_script.php

View File

@@ -0,0 +1,9 @@
[Unit]
Description=FreshRSS get new content
[Timer]
OnBootSec=30s
OnCalendar=*:0/20
[Install]
WantedBy=timers.target