Parcourir la source

Rename fathom subdomain to stats and make it a variable.

Thomas Buck il y a 5 ans
Parent
révision
df70d73549

+ 1
- 1
README.md Voir le fichier

@@ -126,7 +126,7 @@ Create `A` or `CNAME` records which point to your server's IP address:
126 126
 * `mail.example.com`
127 127
 * `www.example.com` (for Web hosting)
128 128
 * `autoconfig.example.com` (for email client automatic configuration)
129
-* `fathom.example.com` (for web stats)
129
+* `stats.example.com` (for web stats)
130 130
 * `news.example.com` (for Selfoss)
131 131
 * `cloud.example.com` (for NextCloud)
132 132
 * `git.example.com` (for gitea)

+ 1
- 0
roles/blog/defaults/main.yml Voir le fichier

@@ -13,6 +13,7 @@ fathom_db_username: 'fathom'
13 13
 fathom_db_password: "{{ lookup('password', secret + '/' + 'fathom_db_password length=32') }}"
14 14
 fathom_db_database: 'fathom'
15 15
 
16
+fathom_subdomain: 'stats'
16 17
 fathom_internal_port: '9000'
17 18
 fathom_secret: "{{ lookup('password', secret + '/' + 'fathom_secret length=32') }}"
18 19
 

+ 3
- 3
roles/blog/templates/etc_apache2_sites-available_fathom.j2 Voir le fichier

@@ -1,11 +1,11 @@
1 1
 <VirtualHost *:80>
2
-    ServerName fathom.{{ item.name }}
2
+    ServerName {{ fathom_subdomain }}.{{ item.name }}
3 3
 
4
-    Redirect temp / https://fathom.{{ item.name }}/
4
+    Redirect temp / https://{{ fathom_subdomain }}.{{ item.name }}/
5 5
 </VirtualHost>
6 6
 
7 7
 <VirtualHost *:443>
8
-    ServerName fathom.{{ item.name }}
8
+    ServerName {{ fathom_subdomain }}.{{ item.name }}
9 9
 
10 10
     SSLEngine               On
11 11
     DocumentRoot            "{{ item.doc_root }}"

+ 1
- 1
roles/blog/templates/var_www_blog_index.j2 Voir le fichier

@@ -22,7 +22,7 @@
22 22
 	m=f.getElementsByTagName('script')[0];
23 23
 	o.async=1; o.src=t; o.id='fathom-script';
24 24
 	m.parentNode.insertBefore(o,m)
25
-})(document, window, '//fathom.{{ domain }}/tracker.js', 'fathom');
25
+})(document, window, '//{{ fathom_subdomain }}.{{ domain }}/tracker.js', 'fathom');
26 26
 fathom('set', 'siteId', 'JTPIK');
27 27
 fathom('trackPageview');
28 28
 		</script>

+ 1
- 1
roles/common/files/letsencrypt-gencert Voir le fichier

@@ -17,7 +17,7 @@ for domain in "$@"; do
17 17
   fi
18 18
 
19 19
   # subdomains - www.foo.com mail.foo.com ...
20
-  for sub in www mail autoconfig fathom news cloud git matrix status social comments iot; do
20
+  for sub in www mail autoconfig stats news cloud git matrix status social comments iot; do
21 21
     # only add if the DNS entry for the subdomain does actually exist
22 22
     if (getent hosts $sub.$domain > /dev/null); then
23 23
       if [ -z "$d" ]; then

Chargement…
Annuler
Enregistrer