nextcloud: Make HArP optional and opt-in
This commit is contained in:
45
roles/nextcloud/vars/main.yaml
Normal file
45
roles/nextcloud/vars/main.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
_nextcloud_cron_container:
|
||||
name: cron
|
||||
entrypoint: /cron.sh
|
||||
_nextcloud_harp_container:
|
||||
name: harp
|
||||
add_capabilities:
|
||||
- CAP_SYS_ADMIN
|
||||
image: quay.io/podman/stable:latest
|
||||
user: podman
|
||||
entrypoint: /entrypoint.sh
|
||||
devices:
|
||||
- source: /dev/fuse
|
||||
mounts:
|
||||
- type: template
|
||||
source: containers.conf.j2
|
||||
destination: /etc/containers/containers.conf
|
||||
- type: template
|
||||
source: harp_entrypoint.sh.j2
|
||||
destination: /entrypoint.sh
|
||||
mode: "0755"
|
||||
- type: volume
|
||||
source: harp-certs
|
||||
destination: /certs
|
||||
- type: volume
|
||||
source: harp-containers
|
||||
destination: /home/podman/.local/share/containers
|
||||
env: {}
|
||||
secrets:
|
||||
- name: harp-shared-key
|
||||
publish_ports:
|
||||
- name: harp
|
||||
type: socket
|
||||
container_port: 8780
|
||||
_nextcloud_additional_containers: >-
|
||||
{{
|
||||
[_nextcloud_cron_container]
|
||||
+ ([_nextcloud_harp_container] if nextcloud_install_harp else [])
|
||||
}}
|
||||
|
||||
_nextcloud_harp_vhost_locations:
|
||||
- path: /exapps/*
|
||||
proxy_target_socket: /run/nextcloud-harp-socat.sock
|
||||
_nextcloud_vhost_locations: >-
|
||||
{{ _nextcloud_harp_vhost_locations if nextcloud_install_harp else [] }}
|
||||
Reference in New Issue
Block a user