add recipya setup
parent
957000d3c2
commit
c4c5ab0e2a
|
|
@ -214,3 +214,18 @@
|
||||||
# syncthing_data_dir: '/mnt/data1/syncthing/data'
|
# syncthing_data_dir: '/mnt/data1/syncthing/data'
|
||||||
# syncthing_home_dir: '/mnt/data1/syncthing/home'
|
# syncthing_home_dir: '/mnt/data1/syncthing/home'
|
||||||
# syncthing_config_dir: '/mnt/data1/syncthing/config'
|
# syncthing_config_dir: '/mnt/data1/syncthing/config'
|
||||||
|
#
|
||||||
|
- name: Set up Recipya
|
||||||
|
hosts: emma
|
||||||
|
tags: recipya
|
||||||
|
roles:
|
||||||
|
- role: any.common.btrfs-subvolumes
|
||||||
|
vars:
|
||||||
|
subvolumes:
|
||||||
|
- filesystem_uuid: "{{ btrfs_nvme.uuid }}"
|
||||||
|
filesystem_path: "{{ btrfs_nvme.path }}"
|
||||||
|
name: "/@rootfs/data/recipya/data"
|
||||||
|
become: true
|
||||||
|
- role: any.software.recipya-podman
|
||||||
|
vars:
|
||||||
|
data_dir: '/data/recipya/data'
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"email": {
|
||||||
|
"from": "",
|
||||||
|
"host": "",
|
||||||
|
"username": "",
|
||||||
|
"password": ""
|
||||||
|
},
|
||||||
|
"integrations": {
|
||||||
|
"azureDocumentIntelligence": {
|
||||||
|
"endpoint": "",
|
||||||
|
"key": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"server": {
|
||||||
|
"autologin": false,
|
||||||
|
"isDemo": false,
|
||||||
|
"noSignups": true,
|
||||||
|
"isProduction": true,
|
||||||
|
"port": 8078,
|
||||||
|
"url": "http://0.0.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
cook.roosens.me {
|
||||||
|
reverse_proxy localhost:8023 {
|
||||||
|
header_down +X-Robots-Tag "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
- name: 'restart recipya'
|
||||||
|
ansible.builtin.systemd_service:
|
||||||
|
name: 'recipya'
|
||||||
|
state: 'restarted'
|
||||||
|
|
||||||
|
scope: 'user'
|
||||||
|
daemon_reload: true
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
- role: any.tools.caddy
|
||||||
|
become: true
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
---
|
||||||
|
- name: Ensure configuration directory is present
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: '/etc/recipya'
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
owner: 'debian'
|
||||||
|
group: 'debian'
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Ensure config file is present
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: 'config.json'
|
||||||
|
dest: '/etc/recipya/config.json'
|
||||||
|
mode: '0644'
|
||||||
|
owner: 'debian'
|
||||||
|
group: 'debian'
|
||||||
|
notify: 'restart recipya'
|
||||||
|
|
||||||
|
- name: Ensure Quadlet files are present
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "recipya.container.j2"
|
||||||
|
dest: "/home/debian/.config/containers/systemd/recipya.container"
|
||||||
|
mode: '0755'
|
||||||
|
owner: 'debian'
|
||||||
|
group: 'debian'
|
||||||
|
notify: 'restart recipya'
|
||||||
|
|
||||||
|
- name: Ensure Caddyfile is present
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: 'recipya.Caddyfile'
|
||||||
|
dest: '/etc/caddy/recipya.Caddyfile'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0644'
|
||||||
|
become: true
|
||||||
|
notify: reload caddy
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
# vim: ft=systemd
|
||||||
|
[Container]
|
||||||
|
Image=docker.io/reaper99/recipya:nightly
|
||||||
|
|
||||||
|
PublishPort=127.0.0.1:8023:8078
|
||||||
|
Volume={{ data_dir }}:/root/.config/Recipya
|
||||||
|
Volume=/etc/recipya/config.json:/root/.config/Recipya/config.json:ro
|
||||||
|
|
||||||
|
Environment=RECIPYA_SERVER_AUTOLOGIN=false RECIPYA_SERVER_IS_DEMO=false RECIPYA_SERVER_IS_PROD=true RECIPYA_SERVER_NO_SIGNUPS=false RECIPYA_SERVER_PORT=8078 RECIPYA_SERVER_URL=http://0.0.0.0
|
||||||
|
|
||||||
|
User=0
|
||||||
|
AutoUpdate=registry
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
Loading…
Reference in New Issue