add goatcounter tracking to all sites via nginx sub_filter
Deploy nginx / deploy (push) Successful in 4s
Deploy nginx / deploy (push) Successful in 4s
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
sub_filter '</body>' '<script data-goatcounter="https://goatcounter.hantim.net/count" async src="//goatcounter.hantim.net/count.js"></script></body>';
|
||||
sub_filter_once on;
|
||||
sub_filter_types text/html;
|
||||
@@ -37,6 +37,7 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/haanmind.net/privkey.pem;
|
||||
|
||||
include /etc/nginx/conf.d/security-headers.inc;
|
||||
include /etc/nginx/conf.d/goatcounter.inc;
|
||||
|
||||
location /media/ {
|
||||
proxy_pass http://garage:3902/;
|
||||
|
||||
@@ -37,6 +37,7 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/hantim.net/privkey.pem;
|
||||
|
||||
include /etc/nginx/conf.d/security-headers.inc;
|
||||
include /etc/nginx/conf.d/goatcounter.inc;
|
||||
|
||||
location /media/ {
|
||||
proxy_pass http://garage:3902/;
|
||||
|
||||
@@ -37,6 +37,7 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/hcsuzuki.music/privkey.pem;
|
||||
|
||||
include /etc/nginx/conf.d/security-headers.inc;
|
||||
include /etc/nginx/conf.d/goatcounter.inc;
|
||||
|
||||
location /media/ {
|
||||
proxy_pass http://garage:3902/;
|
||||
|
||||
@@ -37,6 +37,7 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/hcsuzuki.net/privkey.pem;
|
||||
|
||||
include /etc/nginx/conf.d/security-headers.inc;
|
||||
include /etc/nginx/conf.d/goatcounter.inc;
|
||||
|
||||
location /media/ {
|
||||
proxy_pass http://garage:3902/;
|
||||
|
||||
@@ -37,6 +37,7 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/thekims.family/privkey.pem;
|
||||
|
||||
include /etc/nginx/conf.d/security-headers.inc;
|
||||
include /etc/nginx/conf.d/goatcounter.inc;
|
||||
|
||||
location /media/ {
|
||||
proxy_pass http://garage:3902/;
|
||||
|
||||
@@ -37,6 +37,7 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/timothykim.net/privkey.pem;
|
||||
|
||||
include /etc/nginx/conf.d/security-headers.inc;
|
||||
include /etc/nginx/conf.d/goatcounter.inc;
|
||||
|
||||
location /media/ {
|
||||
proxy_pass http://garage:3902/;
|
||||
|
||||
Reference in New Issue
Block a user