all repos — nixfiles @ 94059859b73961dfaed3ca5dae6c938289361ba2

System and user configuration, managed by nix and home-manager

searchix: enable real-time statistics with goaccess

Alin
commit

94059859b73961dfaed3ca5dae6c938289361ba2

parent

b63585af74cfa912b1560b56dd0ad745599fbd45

1 file changed, 8 insertions(+), 1 deletion(-)

changed files
M system/roles/searchix-stable-container.nix → system/roles/searchix-stable-container.nix
@@ -83,6 +83,9 @@ }
handle_path /stats/* { root /srv/http/access/searchix-stable file_server + reverse_proxy /ws { + to unix/${config.services.goaccess.instances.stable-searchix.settings.unix-socket} + } } handle { reverse_proxy localhost:51314 {
@@ -108,8 +111,12 @@
services.goaccess.instances = { stable-searchix = { enable = true; - dates = "daily"; settings = { + real-time-html = true; + ws-url = "wss://stable.searchix.ovh:443/stats/ws"; + addr = null; + port = null; + unix-socket = "/var/run/goaccess/searchix-stable.sock"; log-file = "${config.services.caddy.logDir}/access-stable.searchix.ovh.log"; output = "/srv/http/access/searchix-stable/index.html"; log-format = "caddy";