Update tinytinyrss

This commit is contained in:
Tobias Reisinger 2023-12-17 02:25:20 +01:00
parent 7638b24bfe
commit e8b1b05ba9
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 10 additions and 74 deletions

View file

@ -59,7 +59,8 @@ rm -rf "$BACKUP_LOCATION"
echo "forgetting old backups for $(hostname)" echo "forgetting old backups for $(hostname)"
docker compose run --rm app forget --host "$(hostname)" --prune \ docker compose run --rm app forget --host "$(hostname)" --prune \
--keep-last 7 \
--keep-daily 14 \ --keep-daily 14 \
--keep-weekly 28 \ --keep-weekly 16 \
--keep-monthly 12 \ --keep-monthly 12 \
--keep-yearly 2 --keep-yearly 2

View file

@ -1,61 +0,0 @@
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /dev/stdout;
error_log /dev/stderr warn;
sendfile on;
index index.php;
upstream app {
server tt-rss:9000;
}
server {
listen 80;
listen [::]:80;
root /var/www/html;
location /tt-rss/cache {
aio threads;
internal;
}
location /tt-rss/backups {
internal;
}
location ~ \.php$ {
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;
# Bypass the fact that try_files resets $fastcgi_path_info
# see: http://trac.nginx.org/nginx/ticket/321
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_pass app;
}
location / {
try_files $uri $uri/ =404;
}
}
}

View file

@ -8,14 +8,5 @@
env: "{{ tinytinyrss_env }}" env: "{{ tinytinyrss_env }}"
compose: "{{ tinytinyrss_compose }}" compose: "{{ tinytinyrss_compose }}"
block: block:
- name: Import prepare tasks for common service - name: Import tasks to deploy common service
ansible.builtin.import_tasks: tasks/prepare-common-service.yml ansible.builtin.import_tasks: tasks/deploy-common-service.yml
- name: Copy the nginx-config
ansible.builtin.copy:
src: nginx.conf
dest: "{{ (service_path, 'nginx.conf') | path_join }}"
mode: "0644"
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml

View file

@ -19,12 +19,17 @@ tinytinyrss_env:
TTRSS_SELF_URL_PATH: https://{{ svc.domain }}/tt-rss/ TTRSS_SELF_URL_PATH: https://{{ svc.domain }}/tt-rss/
APP_UPSTREAM: tt-rss
# Workaround for this bug:
# could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
PGSSLCERT: /tmp/postgresql.crt
tinytinyrss_compose: tinytinyrss_compose:
watchtower: false watchtower: false
image: cthulhoo/ttrss-web-nginx image: cthulhoo/ttrss-web-nginx
volumes: volumes:
- app:/var/www/html:ro - app:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf
file: file:
services: services:
app: app: