This commit is contained in:
Adrian Hopek 2022-03-08 14:32:46 +01:00
parent 07de8e8275
commit 7aa9a52f8c
4 changed files with 3 additions and 8 deletions

1
.gitignore vendored
View File

@ -15,5 +15,6 @@ Homestead.json
Homestead.yaml Homestead.yaml
npm-debug.log npm-debug.log
yarn-error.log yarn-error.log
google-credentials.json
.idea/ .idea/
.composer .composer

View File

@ -1 +0,0 @@
echo ${GOOGLE_CREDENTIALS} > /storage/app/google-calendar/service-account-credentials.json

View File

@ -6,14 +6,9 @@ return [
"default_auth_profile" => env("GOOGLE_CALENDAR_AUTH_PROFILE", "service_account"), "default_auth_profile" => env("GOOGLE_CALENDAR_AUTH_PROFILE", "service_account"),
"auth_profiles" => [ "auth_profiles" => [
"service_account" => [ "service_account" => [
"credentials_json" => storage_path("app/google-calendar/service-account-credentials.json"), "credentials_json" => base_path("google-credentials.json"),
],
"oauth" => [
"credentials_json" => storage_path("app/google-calendar/oauth-credentials.json"),
"token_json" => storage_path("app/google-calendar/oauth-token.json"),
], ],
], ],
"calendar_id" => env("GOOGLE_CALENDAR_ID"), "calendar_id" => env("GOOGLE_CALENDAR_ID"),
"user_to_impersonate" => env("GOOGLE_CALENDAR_IMPERSONATE"), "user_to_impersonate" => env("GOOGLE_CALENDAR_IMPERSONATE"),
]; ];

View File

@ -53,7 +53,7 @@ Directory structure little differs from a standard Laravel tree. We decided to r
dcr node npm run dev dcr node npm run dev
- place google credentials here: `/storage/app/google-calendar/service-account-credentials.json` ([how to obtain the credentials](https://github.com/spatie/laravel-google-calendar#how-to-obtain-the-credentials-to-communicate-with-google-calendar)) - place google credentials here: `/google-credentials.json` ([how to obtain the credentials](https://github.com/spatie/laravel-google-calendar#how-to-obtain-the-credentials-to-communicate-with-google-calendar))
### Available containers (local) ### Available containers (local)