From cb9b39568ebbaffa3012dda7fba6097cd42e1dfd Mon Sep 17 00:00:00 2001 From: Arnau Mora Date: Thu, 18 Apr 2024 12:16:12 +0200 Subject: [PATCH] Simplified Google Cloud configuration (#112) Signed-off-by: Arnau Mora --- docker-compose.yml | 2 -- src/main/kotlin/system/EnvironmentVariables.kt | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 64878b3..e60d202 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,8 +21,6 @@ services: # -- Configure Sentry # Optional: SENTRY_DSN # IS_PRODUCTION: false by default - # -- Configure Google Cloud - # Optional: GOOGLE_APPLICATION_CREDENTIALS env_file: - "secrets.env" volumes: diff --git a/src/main/kotlin/system/EnvironmentVariables.kt b/src/main/kotlin/system/EnvironmentVariables.kt index fc30cab..48e0998 100644 --- a/src/main/kotlin/system/EnvironmentVariables.kt +++ b/src/main/kotlin/system/EnvironmentVariables.kt @@ -60,7 +60,10 @@ object EnvironmentVariables { /** * The path to the service account file for Google Cloud services. */ - data object ServiceAccountFile : EnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS") + data object ServiceAccountFile : EnvironmentVariable( + "GOOGLE_APPLICATION_CREDENTIALS", + "/var/lib/escalaralcoiaicomtat/google-services.json" + ) } }