freifunk: change sysinfo.json location

nginx runs with PrivateTmp=yes since NixOS 20.09
This commit is contained in:
Astro 2021-01-06 18:42:01 +01:00
parent 488eb40d42
commit c06710cf18
1 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ in {
systemd.services.sysinfo-json = {
script = ''
${sysinfo-json}/bin/bmxddump.sh
${sysinfo-json}/bin/sysinfo-json.cgi > /tmp/sysinfo.json
${sysinfo-json}/bin/sysinfo-json.cgi > /run/nginx/sysinfo.json
'';
};
systemd.timers.sysinfo-json = {
@ -232,7 +232,7 @@ in {
locations =
let
sysinfo-json = {
alias = "/tmp/sysinfo.json";
alias = "/run/nginx/sysinfo.json";
extraConfig = ''
add_header Content-Type "application/json;charset=UTF-8";
'';