✨: get from ttrss to freshrss
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
{% include './templates/header.conf.j2' %}
|
{% 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;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
location ~ \.(js|css|png|jpg|jpeg|gif|svg|svgz)$ {
|
location ~ \.(js|css|png|jpg|jpeg|gif|svg|svgz)$ {
|
||||||
@@ -8,8 +8,10 @@ server {
|
|||||||
log_not_found off;
|
log_not_found off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /\.git {
|
location ~ ^/(api/greader).php(/.*)+ {
|
||||||
deny all;
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||||
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||||
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
@@ -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
|
|
||||||
|
|
19
roles/webapps/tasks/freshrss.yml
Normal file
19
roles/webapps/tasks/freshrss.yml
Normal 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
|
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Include ttrss for web1
|
- name: Include freshrss for web1
|
||||||
ansible.builtin.include_tasks: ttrss.yml
|
ansible.builtin.include_tasks: freshrss.yml
|
||||||
when: inventory_hostname == 'web1.dmz.mateu.be'
|
when: inventory_hostname == 'web1.dmz.mateu.be'
|
||||||
- name: Include matomo for web2
|
- name: Include matomo for web2
|
||||||
ansible.builtin.include_tasks: matomo.yml
|
ansible.builtin.include_tasks: matomo.yml
|
||||||
|
@@ -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
|
|
8
roles/webapps/templates/freshrss.service.j2
Normal file
8
roles/webapps/templates/freshrss.service.j2
Normal 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
|
9
roles/webapps/templates/freshrss.timer.j2
Normal file
9
roles/webapps/templates/freshrss.timer.j2
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=FreshRSS get new content
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=30s
|
||||||
|
OnCalendar=*:0/20
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Reference in New Issue
Block a user