feat: add file_lock and notify_push configuration to nextcloud role
Signed-off-by: Bert-Jan Fikse <bert-jan@whatwedo.ch>
This commit is contained in:
parent
910986b808
commit
d517f77b6c
4 changed files with 55 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ services:
|
|||
PHP_UPLOAD_LIMIT: {{ nextcloud_upload_limit_mb }}M
|
||||
OVERWRITEPROTOCOL: https
|
||||
OVERWRITEHOST: {{ nextcloud_domain }}
|
||||
TRUSTED_PROXIES: "172.18.0.0/16 172.16.9.88/16 172.16.17.0/24 172.16.9.88"
|
||||
TRUSTED_PROXIES: "{{ nextcloud_trusted_proxies }}"
|
||||
volumes:
|
||||
- {{ nextcloud_docker_volume_dir }}/nextcloud/:/var/www/html
|
||||
networks:
|
||||
|
|
@ -86,7 +86,7 @@ services:
|
|||
PHP_UPLOAD_LIMIT: {{ nextcloud_upload_limit_mb }}M
|
||||
OVERWRITEPROTOCOL: https
|
||||
OVERWRITEHOST: {{ nextcloud_domain }}
|
||||
TRUSTED_PROXIES: "172.18.0.0/16 172.16.9.88/16 172.16.17.0/24 172.16.9.88"
|
||||
TRUSTED_PROXIES: "{{ nextcloud_trusted_proxies }}"
|
||||
{% if nextcloud_use_s3_storage %}
|
||||
OBJECTSTORE_S3_KEY: {{ nextcloud_s3_key }}
|
||||
OBJECTSTORE_S3_SECRET: {{ nextcloud_s3_secret }}
|
||||
|
|
@ -109,6 +109,39 @@ services:
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if nextcloud_enable_notify_push %}
|
||||
notify-push:
|
||||
image: icewind1991/notify_push
|
||||
restart: always
|
||||
depends_on:
|
||||
- redis
|
||||
- db
|
||||
volumes:
|
||||
- {{ nextcloud_docker_volume_dir }}/nextcloud/:/var/www/html
|
||||
environment:
|
||||
PORT: "7867"
|
||||
REDIS_URL: "redis://redis:6379"
|
||||
DATABASE_URL: "postgres://{{ nextcloud_postgres_user }}:{{ nextcloud_postgres_password }}@db:5432/{{ nextcloud_postgres_db }}"
|
||||
DATABASE_PREFIX: "oc_"
|
||||
NEXTCLOUD_URL: "http://nginx"
|
||||
networks:
|
||||
- {{ nextcloud_backend_network }}
|
||||
- {{ nextcloud_traefik_network }}
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network={{ nextcloud_traefik_network }}
|
||||
- traefik.http.routers.{{ nextcloud_service_name }}-push.rule=Host(`{{ nextcloud_domain }}`) && PathPrefix(`/push`)
|
||||
- traefik.http.services.{{ nextcloud_service_name }}-push.loadbalancer.server.port=7867
|
||||
{% if nextcloud_use_ssl %}
|
||||
- traefik.http.routers.{{ nextcloud_service_name }}-push.entrypoints=websecure
|
||||
- traefik.http.routers.{{ nextcloud_service_name }}-push.tls=true
|
||||
{% else %}
|
||||
- traefik.http.routers.{{ nextcloud_service_name }}-push.entrypoints=web
|
||||
{% endif %}
|
||||
- traefik.http.middlewares.{{ nextcloud_service_name }}-push-https.headers.customrequestheaders.X-Forwarded-Proto=https
|
||||
- traefik.http.routers.{{ nextcloud_service_name }}-push.middlewares={{ nextcloud_service_name }}-push-https
|
||||
{% endif %}
|
||||
|
||||
networks:
|
||||
{{ nextcloud_backend_network }}:
|
||||
{{ nextcloud_traefik_network }}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue