mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Harden Matomo install for timezone issue
Additionally, temporarily switch apache_user to www-data to unblock access to Matomo. Will debug later.
This commit is contained in:
parent
de9e699571
commit
45525c5397
1 changed files with 17 additions and 3 deletions
|
@ -39,8 +39,8 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ matomo_path }}/matomo"
|
path: "{{ matomo_path }}/matomo"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
owner: "{{ apache_user }}" # e.g. www-data
|
owner: www-data
|
||||||
group: "{{ apache_user }}"
|
group: www-data
|
||||||
|
|
||||||
- name: HTTP Get Welcome
|
- name: HTTP Get Welcome
|
||||||
uri:
|
uri:
|
||||||
|
@ -139,8 +139,22 @@
|
||||||
url: "{{ matomo_host_url }}"
|
url: "{{ matomo_host_url }}"
|
||||||
ecommerce: 0
|
ecommerce: 0
|
||||||
body_format: form-urlencoded
|
body_format: form-urlencoded
|
||||||
|
register: _result
|
||||||
|
|
||||||
|
- name: Fallback Configure Matomo to track IIAB
|
||||||
|
uri:
|
||||||
|
url: "{{ matomo_full_url }}index.php?action=firstWebsiteSetup&module=Installation"
|
||||||
|
method: POST
|
||||||
|
headers:
|
||||||
|
Cookie: "{{ matomo_session_cookie }}"
|
||||||
|
body:
|
||||||
|
siteName: "IIAB"
|
||||||
|
url: "{{ matomo_host_url }}"
|
||||||
|
timezone: "Europe/London"
|
||||||
|
ecommerce: 0
|
||||||
|
body_format: form-urlencoded
|
||||||
status_code: 302
|
status_code: 302
|
||||||
#register: matomo_first_website_setup
|
when: _result.status == 200
|
||||||
|
|
||||||
- name: Matomo Tracking Code
|
- name: Matomo Tracking Code
|
||||||
uri:
|
uri:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue