-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
149 lines (121 loc) · 8.43 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
---
# Project source code URL: https://github.com/dgtlmoon/changedetection.io
changedetection_enabled: true
changedetection_playwright_driver_enabled: false
changedetection_identifier: changedetection
changedetection_playwright_driver_identifier: "{{ changedetection_identifier}}-playwright-driver"
changedetection_uid: ''
changedetection_gid: ''
changedetection_version: '0.48.04'
changedetection_playwright_driver_version: latest
# The hostname at which changedetection is served.
changedetection_hostname: ''
# The path at which changedetection is served.
# This value must either be `/` or not end with a slash (e.g. `/changedetection`).
changedetection_path_prefix: /
changedetection_base_path: "/{{ changedetection_identifier }}"
changedetection_data_dir_path: "{{ changedetection_base_path }}/data"
changedetection_container_image: "{{ changedetection_container_image_registry_prefix }}dgtlmoon/changedetection.io:{{ changedetection_container_image_tag }}"
changedetection_container_image_registry_prefix: ghcr.io/
changedetection_container_image_tag: "{{ changedetection_version }}"
changedetection_container_image_force_pull: "{{ changedetection_container_image.endswith(':latest') }}"
changedetection_playwright_driver_container_image: "{{ changedetection_playwright_driver_container_image_registry_prefix }}browserless/chrome:{{ changedetection_playwright_driver_container_image_tag }}"
changedetection_playwright_driver_container_image_registry_prefix: docker.io/
changedetection_playwright_driver_container_image_tag: "{{ changedetection_playwright_driver_version }}"
changedetection_playwright_driver_container_image_force_pull: "{{ changedetection_playwright_driver_container_image.endswith(':latest') }}"
# The base container network. It will be auto-created by this role if it doesn't exist already.
changedetection_container_network: "{{ changedetection_identifier }}"
# A list of additional container networks that the container would be connected to.
# The role does not create these networks, so make sure they already exist.
# Use this to expose this container to another reverse proxy, which runs in a different container network.
changedetection_container_additional_networks: "{{ changedetection_container_additional_networks_auto + changedetection_container_additional_networks_custom }}"
changedetection_container_additional_networks_auto: []
changedetection_container_additional_networks_custom: []
changedetection_playwright_driver_container_additional_networks: "{{ changedetection_playwright_driver_container_additional_networks_auto + changedetection_playwright_driver_container_additional_networks_custom }}"
changedetection_playwright_driver_container_additional_networks_auto: []
changedetection_playwright_driver_container_additional_networks_custom: []
# Specifies how the container publishes its HTTP port
#
# Takes an "<ip>:<port>" value (e.g. "127.0.0.1:5000"), just a port number or an empty string to not expose.
changedetection_container_http_port: 5000
changedetection_container_http_bind_port: ''
# changedetection_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
# See `../templates/labels.j2` for details.
#
# To inject your own other container labels, see `changedetection_container_labels_additional_labels`.
changedetection_container_labels_traefik_enabled: true
changedetection_container_labels_traefik_docker_network: "{{ changedetection_container_network }}"
changedetection_container_labels_traefik_hostname: "{{ changedetection_hostname }}"
# The path prefix must either be `/` or not end with a slash (e.g. `/changedetection`).
changedetection_container_labels_traefik_path_prefix: "{{ changedetection_path_prefix }}"
changedetection_container_labels_traefik_rule: "Host(`{{ changedetection_container_labels_traefik_hostname }}`){% if changedetection_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ changedetection_container_labels_traefik_path_prefix }}`){% endif %}"
changedetection_container_labels_traefik_priority: 0
changedetection_container_labels_traefik_entrypoints: web-secure
changedetection_container_labels_traefik_tls: "{{ changedetection_container_labels_traefik_entrypoints != 'web' }}"
changedetection_container_labels_traefik_tls_certResolver: default
# Controls which additional headers to attach to all HTTP requests.
# To add your own custom request headers, use `changedetection_container_labels_traefik_additional_response_headers_custom`
changedetection_container_labels_traefik_additional_request_headers: "{{ changedetection_container_labels_traefik_additional_request_headers_auto | combine(changedetection_container_labels_traefik_additional_request_headers_custom) }}"
changedetection_container_labels_traefik_additional_request_headers_auto: {}
changedetection_container_labels_traefik_additional_request_headers_custom: {}
# Controls which additional headers to attach to all HTTP responses.
# To add your own custom response headers, use `changedetection_container_labels_traefik_additional_response_headers_custom`
changedetection_container_labels_traefik_additional_response_headers: "{{ changedetection_container_labels_traefik_additional_response_headers_auto | combine(changedetection_container_labels_traefik_additional_response_headers_custom) }}"
changedetection_container_labels_traefik_additional_response_headers_auto: {}
changedetection_container_labels_traefik_additional_response_headers_custom: {}
# changedetection_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
# See `../templates/labels.j2` for details.
#
# Example:
# changedetection_container_labels_additional_labels: |
# my.label=1
# another.label="here"
changedetection_container_labels_additional_labels: ''
# A list of additional "volumes" to mount in the container.
#
# See the `--mount` documentation for the `docker run` command.
#
# Example:
# changedetection_container_additional_volumes:
# - type: bind
# src: /path/on/the/host
# dst: /data
# - type: bind
# src: /another-path/on/the/host
# dst: /read-only
# options: readonly
changedetection_container_additional_volumes: []
# A list of extra arguments to pass to the container
changedetection_container_extra_arguments: []
changedetection_playwright_driver_url: "{{ 'ws://' + changedetection_playwright_driver_identifier + ':3000/?stealth=1&--disable-web-security=true' if changedetection_playwright_driver_enabled else ''}}"
changedetection_http_proxy: ''
changedetection_https_proxy: ''
changedetection_no_proxy: ''
changedetection_base_url: "https://{{ changedetection_hostname + changedetection_path_prefix | trim('/') }}"
changedetection_proxy_headers: true
changedetection_hide_referer: false
changedetection_playwright_driver_connection_timeout: 300000
changedetection_playwright_driver_concurrent_sessions: 10
changedetection_playwright_driver_refresh_time: 600000
changedetection_playwright_driver_block_ads: true
changedetection_playwright_driver_stealth: true
#Ignore HTTPS errors, like for self-signed certs
changedetection_playwright_driver_ignore_https_errors: false
# Additional environment variables.
changedetection_environment_variables_additional_variables: ''
changedetection_playwright_driver_environment_variables_additional_variables: ''
# List of systemd services that changedetection.service depends on
changedetection_systemd_required_services_list: "{{ changedetection_systemd_required_services_list_default + changedetection_systemd_required_services_list_auto + changedetection_systemd_required_services_list_custom }}"
changedetection_systemd_required_services_list_default: |
{{
['docker.service']
+
([changedetection_playwright_driver_identifier + '.service'] if changedetection_playwright_driver_enabled else [])
}}
changedetection_systemd_required_services_list_auto: []
changedetection_systemd_required_services_list_custom: []
# List of systemd services that changedetection.service depends on
changedetection_playwright_driver_systemd_required_services_list: "{{ changedetection_playwright_driver_systemd_required_services_list_default + changedetection_playwright_driver_systemd_required_services_list_auto + changedetection_playwright_driver_systemd_required_services_list_custom }}"
changedetection_playwright_driver_systemd_required_services_list_default: ['docker.service']
changedetection_playwright_driver_systemd_required_services_list_auto: []
changedetection_playwright_driver_systemd_required_services_list_custom: []