calibre-web

main
Alpha Chen 1 year ago
parent 52e6f208bf
commit da44c93ee9
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -0,0 +1,43 @@
- name: Set up Calibre-web
hosts: lotus-land-story
vars_files:
- vars.yml
tasks:
- name: Create directories for volume mounting
ansible.builtin.file:
path: /mnt/lotus-land-story/calibre-web/{{ item }}
state: directory
mode: "0755"
loop:
- books
- config
- name: Get docker network
community.docker.docker_network:
name: lotus_land_story
register: docker_network
# https://github.com/linuxserver/docker-calibre-web#docker-compose-recommended-click-here-for-more-info
- name: Run Calibre-web
community.docker.docker_container:
name: calibre-web
image: lscr.io/linuxserver/calibre-web:latest
restart: true
env:
PUID: "0"
PGID: "0"
TZ: Etc/UTC
DOCKER_MODS: linuxserver/mods:universal-calibre
volumes:
- /mnt/lotus-land-story/calibre-web/books:/books
- /mnt/lotus-land-story/calibre-web/config:/config
restart_policy: unless-stopped
networks:
- name: lotus_land_story
handlers:
- name: Import restarts
ansible.builtin.import_tasks: restarts.yml
# vim: ft=yaml.ansible

@ -23,44 +23,37 @@ grafana.{{ domain }} {
reverse_proxy grafana:3000
}
# ci.{{ domain }} {
# reverse_proxy woodpecker-server:8000
# }
woodpecker.{{ domain }} {
reverse_proxy woodpecker-server:8000
auth.{{ domain }} {
reverse_proxy authelia:9091 {
import trusted_proxy_list
}
}
{{ firefly_iii.subdomain }}.{{ domain }} {
{{ hledger.subdomain }}.{{ domain }} {
forward_auth authelia:9091 {
uri /api/verify?rd=https://auth.{{ domain }}
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
# copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
## This import needs to be included if you're relying on a trusted proxies configuration.
import trusted_proxy_list
}
reverse_proxy firefly-iii:8080 {
import trusted_proxy_list
}
}
auth.{{ domain }} {
reverse_proxy authelia:9091 {
reverse_proxy hledger:5000 {
import trusted_proxy_list
}
}
{{ hledger.subdomain }}.{{ domain }} {
books.{{ domain }} {
forward_auth authelia:9091 {
uri /api/verify?rd=https://auth.{{ domain }}
copy_headers Remote-User
# copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
## This import needs to be included if you're relying on a trusted proxies configuration.
import trusted_proxy_list
}
reverse_proxy hledger:5000 {
reverse_proxy calibre-web:8083 {
import trusted_proxy_list
}
}

Loading…
Cancel
Save