diff --git a/deploy/Caddyfile b/deploy/Caddyfile
index 6dde5aa..ac8326a 100644
--- a/deploy/Caddyfile
+++ b/deploy/Caddyfile
@@ -20,3 +20,12 @@ lichen.wiki {
# Everything else
reverse_proxy localhost:3000
}
+
+stats.lichen.wiki {
+ tls {
+ dns cloudflare {env.CLOUDFLARE_API_TOKEN}
+ }
+
+ encode gzip
+ reverse_proxy localhost:8081
+}
diff --git a/deploy/caddy.service b/deploy/caddy.service
index 1fd9fd2..09fa872 100644
--- a/deploy/caddy.service
+++ b/deploy/caddy.service
@@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/caddy run --config /etc/caddy/Caddyfile --envfile /etc/lichen/env
+ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile --force
Restart=on-failure
RestartSec=5
AmbientCapabilities=CAP_NET_BIND_SERVICE
diff --git a/src/views/layout.ts b/src/views/layout.ts
index b2f2492..7493277 100644
--- a/src/views/layout.ts
+++ b/src/views/layout.ts
@@ -258,6 +258,7 @@ ${extraScripts}
${msg.home.sourceCode}
+