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:
parent
7290a18cb1
commit
6e4df43f62
1 changed files with 8 additions and 0 deletions
|
@ -170,6 +170,14 @@ in lib.fix(self: {
|
||||||
postRun = "systemctl reload nginx";
|
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
|
# serve my website
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue