mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Cleaned up matomo integration
This commit is contained in:
@@ -4,16 +4,6 @@
|
||||
notify: restart nginx
|
||||
when: run_once_nginx is not defined
|
||||
|
||||
# I assume the following can be deleted
|
||||
# @todo Delete
|
||||
|
||||
- name: install nginx-mod-headers-more for matomo
|
||||
pacman:
|
||||
name: nginx-mod-headers-more
|
||||
state: present
|
||||
notify: restart nginx
|
||||
when: run_once_nginx is not defined and global_matomo_tracking_enabled | bool
|
||||
|
||||
- name: "Delete {{nginx.directories.configuration}} directory, when mode_reset"
|
||||
file:
|
||||
path: "{{ nginx.directories.configuration }}"
|
||||
|
@@ -1,8 +1,3 @@
|
||||
{% if global_matomo_tracking_enabled | bool %}
|
||||
# @todo Assume this can be removed. Remove.
|
||||
load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;
|
||||
{% endif %}
|
||||
|
||||
worker_processes auto;
|
||||
|
||||
events
|
||||
@@ -15,12 +10,12 @@ http
|
||||
include mime.types;
|
||||
default_type text/html;
|
||||
|
||||
# caching
|
||||
{# caching #}
|
||||
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:20m max_size=20g inactive=14d use_temp_path=off;
|
||||
|
||||
# logging and debugging
|
||||
{# logging and debugging #}
|
||||
{% if enable_debug | bool %}
|
||||
# individual log format for better debugging
|
||||
{# individual log format for better debugging #}
|
||||
log_format debug '$host - $remote_addr [$time_local] '
|
||||
'"$request" $status $body_bytes_sent '
|
||||
'"Referer: $http_referer" '
|
||||
@@ -39,7 +34,7 @@ http
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
# gzip
|
||||
{# gzip #}
|
||||
gzip on;
|
||||
gzip_proxied any;
|
||||
gzip_vary on;
|
||||
|
Reference in New Issue
Block a user