mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 11:03:07 +00:00
Fix Ubooquity merge conflict
This commit is contained in:
commit
b765ea95a0
7 changed files with 86 additions and 0 deletions
|
@ -72,6 +72,7 @@ Ansible config and a bunch of Docker containers.
|
||||||
* [TimeMachine](https://github.com/awlx/samba-timemachine) - Samba-based mac backup server
|
* [TimeMachine](https://github.com/awlx/samba-timemachine) - Samba-based mac backup server
|
||||||
* [Traefik](https://traefik.io/) - Web proxy and SSL certificate manager
|
* [Traefik](https://traefik.io/) - Web proxy and SSL certificate manager
|
||||||
* [Transmission](https://transmissionbt.com/) - BitTorrent client (with OpenVPN if you have a supported VPN provider)
|
* [Transmission](https://transmissionbt.com/) - BitTorrent client (with OpenVPN if you have a supported VPN provider)
|
||||||
|
* [Ubooquity](http://vaemendis.net/ubooquity/) - Book and comic server
|
||||||
* [Wallabag](https://wallabag.org/) - Save and classify articles. Read them later.
|
* [Wallabag](https://wallabag.org/) - Save and classify articles. Read them later.
|
||||||
* [Watchtower](https://github.com/v2tec/watchtower) - Monitor your Docker containers and update them if a new version is available
|
* [Watchtower](https://github.com/v2tec/watchtower) - Monitor your Docker containers and update them if a new version is available
|
||||||
* [ZNC](https://wiki.znc.in/ZNC) - IRC bouncer to stay connected to favourite IRC networks and channels
|
* [ZNC](https://wiki.znc.in/ZNC) - IRC bouncer to stay connected to favourite IRC networks and channels
|
||||||
|
|
24
docs/applications/ubooquity.md
Normal file
24
docs/applications/ubooquity.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# Ubooquity Comic and Book Server
|
||||||
|
|
||||||
|
Homepage: [https://vaemendis.net/ubooquity/](https://vaemendis.net/ubooquity/)
|
||||||
|
Documentation: [https://vaemendis.github.io/ubooquity-doc/](https://vaemendis.github.io/ubooquity-doc/)
|
||||||
|
Docker Image: [https://hub.docker.com/r/linuxserver/ubooquity/](https://hub.docker.com/r/linuxserver/ubooquity/)
|
||||||
|
|
||||||
|
Ubooquity is a free, lightweight and easy-to-use home server for your comics and ebooks. Use it to access your files from anywhere, with a tablet, an e-reader, a phone or a computer.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Set `ubooquity_enabled: true` in your `group_vars/all.yml` file.
|
||||||
|
|
||||||
|
Access the webui at http://<server>:2202/ubooquity by default. See specific configuration section below for information on setting up external access.
|
||||||
|
|
||||||
|
## Specific Configuration
|
||||||
|
|
||||||
|
Important note: if you want to access Ubooquity externally through Traefik (at ubooquity.yourdomain.tld), you need to go to http://<server>:2203/ubooquity/admin and set the reverse proxy prefix to blank under "Advanced". Otherwise you will need to append "/ubooquity" to the url in order to access.
|
||||||
|
|
||||||
|
### Admin login
|
||||||
|
|
||||||
|
The admin portal is not exposed through Traefik. You can access the admin portal on port 2203.
|
||||||
|
|
||||||
|
Upon your first run, the address is http://<server>:2203/ubooquity/admin. You will be able to set the admin password here.
|
||||||
|
|
|
@ -49,5 +49,7 @@ By default, applications can be found on the ports listed below.
|
||||||
| Traefik | 8083 | |
|
| Traefik | 8083 | |
|
||||||
| Transmission | 9091 | with VPN |
|
| Transmission | 9091 | with VPN |
|
||||||
| Transmission | 9092 | |
|
| Transmission | 9092 | |
|
||||||
|
| Ubooquity | 2202 | |
|
||||||
|
| Ubooquity | 2203 | Admin |
|
||||||
| Wallabag | 7780 | |
|
| Wallabag | 7780 | |
|
||||||
| ZNC | 6677 | |
|
| ZNC | 6677 | |
|
||||||
|
|
|
@ -88,6 +88,9 @@ openhab_enabled: false
|
||||||
# Calibre
|
# Calibre
|
||||||
calibre_enabled: false
|
calibre_enabled: false
|
||||||
|
|
||||||
|
# Ubooquity
|
||||||
|
ubooquity_enabled: false
|
||||||
|
|
||||||
# Joomla
|
# Joomla
|
||||||
joomla_enabled: false
|
joomla_enabled: false
|
||||||
|
|
||||||
|
@ -154,6 +157,9 @@ podcasts_root: "{{ samba_shares_root }}/podcasts"
|
||||||
# Where your books are stored
|
# Where your books are stored
|
||||||
books_root: "{{ samba_shares_root }}/books"
|
books_root: "{{ samba_shares_root }}/books"
|
||||||
|
|
||||||
|
# Where your books are stored
|
||||||
|
comics_root: "{{ samba_shares_root }}/comics"
|
||||||
|
|
||||||
# Where photos are stored
|
# Where photos are stored
|
||||||
photos_root: "{{ samba_shares_root }}/photos"
|
photos_root: "{{ samba_shares_root }}/photos"
|
||||||
|
|
||||||
|
@ -234,6 +240,14 @@ samba_shares:
|
||||||
browsable: yes
|
browsable: yes
|
||||||
path: "{{ samba_shares_root }}/books"
|
path: "{{ samba_shares_root }}/books"
|
||||||
|
|
||||||
|
- name: comics
|
||||||
|
comment: 'Comics'
|
||||||
|
guest_ok: yes
|
||||||
|
public: yes
|
||||||
|
writable: yes
|
||||||
|
browsable: yes
|
||||||
|
path: "{{ samba_shares_root }}/comics"
|
||||||
|
|
||||||
###
|
###
|
||||||
### NFS
|
### NFS
|
||||||
###
|
###
|
||||||
|
@ -681,3 +695,11 @@ jellyfin_tv_directory: "{{ tv_root }}"
|
||||||
jellyfin_tv_permissions: "rw"
|
jellyfin_tv_permissions: "rw"
|
||||||
jellyfin_user_id: "0"
|
jellyfin_user_id: "0"
|
||||||
jellyfin_group_id: "0"
|
jellyfin_group_id: "0"
|
||||||
|
|
||||||
|
###
|
||||||
|
### Ubooquity
|
||||||
|
###
|
||||||
|
ubooquity_available_externally: "false"
|
||||||
|
ubooquity_data_directory: "{{ docker_home }}/ubooquity"
|
||||||
|
ubooquity_user_id: 0
|
||||||
|
ubooquity_group_id: 0
|
||||||
|
|
4
nas.yml
4
nas.yml
|
@ -203,3 +203,7 @@
|
||||||
- import_tasks: tasks/cloudcmd.yml
|
- import_tasks: tasks/cloudcmd.yml
|
||||||
when: (cloudcmd_enabled | default(False))
|
when: (cloudcmd_enabled | default(False))
|
||||||
tags: cloudcmd
|
tags: cloudcmd
|
||||||
|
|
||||||
|
- import_tasks: tasks/ubooquity.yml
|
||||||
|
when: (ubooquity_enabled | default(False))
|
||||||
|
tags: ubooquity
|
||||||
|
|
32
tasks/ubooquity.yml
Normal file
32
tasks/ubooquity.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
- name: Create Ubooquity Directories
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- "{{ ubooquity_data_directory }}"
|
||||||
|
|
||||||
|
- name: Ubooquity Docker Container
|
||||||
|
docker_container:
|
||||||
|
name: ubooquity
|
||||||
|
image: linuxserver/ubooquity:latest
|
||||||
|
pull: true
|
||||||
|
volumes:
|
||||||
|
- "{{ ubooquity_data_directory }}/config:/config:rw"
|
||||||
|
- "{{ ubooquity_data_directory }}/files:/files:rw"
|
||||||
|
- "{{ comics_root }}:/comics"
|
||||||
|
- "{{ books_root }}:/books"
|
||||||
|
env:
|
||||||
|
TZ: "{{ ansible_nas_timezone }}"
|
||||||
|
PUID: "{{ ubooquity_user_id|quote }}"
|
||||||
|
PGID: "{{ ubooquity_group_id|quote }}"
|
||||||
|
MAXMEM: "1024"
|
||||||
|
ports:
|
||||||
|
- "2202:2202"
|
||||||
|
- "2203:2203"
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
labels:
|
||||||
|
traefik.backend: "ubooquity"
|
||||||
|
traefik.frontend.rule: "Host:ubooquity.{{ ansible_nas_domain }}"
|
||||||
|
traefik.enable: "{{ ubooquity_available_externally }}"
|
||||||
|
traefik.port: "2202"
|
|
@ -212,5 +212,6 @@ onDemand = false # create certificate when container is created
|
||||||
"thelounge.{{ ansible_nas_domain }}",
|
"thelounge.{{ ansible_nas_domain }}",
|
||||||
"transmission.{{ ansible_nas_domain }}",
|
"transmission.{{ ansible_nas_domain }}",
|
||||||
"transmission-openvpn.{{ ansible_nas_domain }}",
|
"transmission-openvpn.{{ ansible_nas_domain }}",
|
||||||
|
"ubooquity.{{ ansible_nas_domain }}",
|
||||||
"wallabag.{{ ansible_nas_domain }}",
|
"wallabag.{{ ansible_nas_domain }}",
|
||||||
"znc.{{ ansible_nas_domain }}"]
|
"znc.{{ ansible_nas_domain }}"]
|
||||||
|
|
Loading…
Reference in a new issue