feat: add koreader sync server + fix apt cache in caddy task
This commit is contained in:
@@ -27,6 +27,7 @@ subdomains:
|
|||||||
gotify_assistant: "gotify-assistant.{{ primary_domain }}" # iGotify iOS assistant
|
gotify_assistant: "gotify-assistant.{{ primary_domain }}" # iGotify iOS assistant
|
||||||
listmonk: "listmonk.{{ secondary_domain }}" # Listmonk mailing list
|
listmonk: "listmonk.{{ secondary_domain }}" # Listmonk mailing list
|
||||||
dir2opds: "opds.{{ primary_domain }}" # dir2opds OPDS catalog
|
dir2opds: "opds.{{ primary_domain }}" # dir2opds OPDS catalog
|
||||||
|
kosync: "sync.{{ primary_domain }}" # KOReader sync server
|
||||||
|
|
||||||
# Email domains for notifications
|
# Email domains for notifications
|
||||||
email_domains:
|
email_domains:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
service_categories:
|
service_categories:
|
||||||
infrastructure: ["caddy", "authentik", "dockge"]
|
infrastructure: ["caddy", "authentik", "dockge"]
|
||||||
development: ["gitea", "bytestash"]
|
development: ["gitea", "bytestash"]
|
||||||
media: ["audiobookshelf", "calibre", "dir2opds", "hoarder", "manyfold"]
|
media: ["audiobookshelf", "calibre", "dir2opds", "hoarder", "kosync", "manyfold"]
|
||||||
productivity: ["paperlessngx", "baikal", "syncthing", "heyform", "dawarich", "obsidian-livesync"]
|
productivity: ["paperlessngx", "baikal", "syncthing", "heyform", "dawarich", "obsidian-livesync"]
|
||||||
communication: ["gotosocial", "listmonk"]
|
communication: ["gotosocial", "listmonk"]
|
||||||
monitoring: ["glance", "changedetection", "appriseapi", "gotify", "cronmaster"]
|
monitoring: ["glance", "changedetection", "appriseapi", "gotify", "cronmaster"]
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: apache2-utils
|
name: apache2-utils
|
||||||
state: present
|
state: present
|
||||||
|
update_cache: true
|
||||||
|
cache_valid_time: 3600
|
||||||
become: true
|
become: true
|
||||||
when: vault_dir2opds is defined
|
when: vault_dir2opds is defined
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
- name: make kosync directories
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
loop:
|
||||||
|
- /opt/stacks/kosync
|
||||||
|
- /opt/stacks/kosync/logs/app
|
||||||
|
- /opt/stacks/kosync/logs/redis
|
||||||
|
- /opt/stacks/kosync/data/redis
|
||||||
|
|
||||||
|
- name: Template out the compose file
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: kosync-compose.yml.j2
|
||||||
|
dest: /opt/stacks/kosync/compose.yml
|
||||||
|
owner: root
|
||||||
|
mode: 644
|
||||||
|
|
||||||
|
- name: deploy kosync stack
|
||||||
|
community.docker.docker_compose_v2:
|
||||||
|
project_src: /opt/stacks/kosync
|
||||||
|
files:
|
||||||
|
- compose.yml
|
||||||
@@ -33,4 +33,8 @@
|
|||||||
|
|
||||||
- name: Install dir2opds
|
- name: Install dir2opds
|
||||||
import_tasks: dir2opds.yml
|
import_tasks: dir2opds.yml
|
||||||
tags: dir2opds
|
tags: dir2opds
|
||||||
|
|
||||||
|
- name: Install koreader sync server
|
||||||
|
import_tasks: kosync.yml
|
||||||
|
tags: kosync
|
||||||
@@ -114,3 +114,7 @@ opds.thesatelliteoflove.com {
|
|||||||
reverse_proxy dir2opds:8080
|
reverse_proxy dir2opds:8080
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
sync.thesatelliteoflove.com {
|
||||||
|
reverse_proxy kosync:17200
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
services:
|
||||||
|
kosync:
|
||||||
|
image: koreader/kosync:latest
|
||||||
|
container_name: kosync
|
||||||
|
environment:
|
||||||
|
- ENABLE_USER_REGISTRATION=true
|
||||||
|
volumes:
|
||||||
|
- ./logs/app:/app/koreader-sync-server/logs
|
||||||
|
- ./logs/redis:/var/log/redis
|
||||||
|
- ./data/redis:/var/lib/redis
|
||||||
|
restart: unless-stopped
|
||||||
|
labels:
|
||||||
|
glance.name: KOReader Sync
|
||||||
|
glance.icon: si:book
|
||||||
|
glance.url: https://{{ subdomains.kosync }}/
|
||||||
|
glance.description: KOReader reading progress sync
|
||||||
|
mag37.dockcheck.update: true
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
external: true
|
||||||
|
name: {{ docker.network_name }}
|
||||||
Reference in New Issue
Block a user