feat(ops/nixos/camden): Forward logs to Stackdriver Logging

Enables the journaldriver service to forward logs into a "home"
log-stream in the "tazjins-infrastructure" project.

The service account key for camden has been placed on the machine
manually.
This commit is contained in:
Vincent Ambo 2020-02-21 15:35:51 +00:00
parent 7290a18cb1
commit 6e4df43f62

View file

@ -170,6 +170,14 @@ in lib.fix(self: {
postRun = "systemctl reload nginx";
};
# Forward logs to Google Cloud Platform
services.journaldriver = {
enable = true;
logStream = "home";
googleCloudProject = "tazjins-infrastructure";
applicationCredentials = "/etc/gcp/key.json";
};
# serve my website
services.nginx = {
enable = true;