Add proxy auth

This commit is contained in:
Sage 2026-01-21 16:10:56 +00:00
parent b59b4a8267
commit 8307d2dc60

View file

@ -38,8 +38,11 @@ in {
Description = "Google Cloud SQL Proxy (${name})";
After = ["network.target"];
};
Service = {
Service = {
Type = "simple";
Environment = [
"GOOGLE_APPLICATION_CREDENTIALS=${config.home.homeDirectory}/.config/gcloud/application_default_credentials.json"
];
ExecStart = "${pkgs.google-cloud-sql-proxy}/bin/cloud-sql-proxy mk2-${name}:europe-west1:mk2-${name}-sql-instance -p ${port}";
Restart = "always";
};
@ -49,7 +52,7 @@ Service = {
};
};
in
proxy-service "test" test-port
proxy-service "test" test-port
// proxy-service "prod" prod-port;
};
}