update website and github action

This commit is contained in:
Kopatz
2023-10-26 19:52:40 +02:00
parent 21aad93b6b
commit 9896da61c3
2 changed files with 10 additions and 3 deletions

View File

@@ -23,6 +23,8 @@
};
systemd.tmpfiles.rules = [
"d /github-actions-runner 0770 github-actions-runner github-actions-runner -"
"d /data 0770 github-actions-runner nginx -"
"d /data/website 0770 github-actions-runner nginx -"
];
services.github-runner = {
enable = true;
@@ -31,5 +33,10 @@
url = "https://github.com/oberprofis";
user = "github-actions-runner";
workDir = "/github-actions-runner";
extraPackages = with pkgs; [ rsync ];
serviceOverrides = {
BindPaths= [ "/github-actions-runner" "/data/website" ];
UMask = "022";
};
};
}
}

View File

@@ -20,7 +20,7 @@
# "server.local"
# "192.168.0.6"
#];
root = "/var/www";
root = "/data/website";
forceSSL = true;
enableACME = true;
locations."~* \\.(jpg)$".extraConfig= ''
@@ -32,4 +32,4 @@
};
};
};
}
}