File tree 4 files changed +28
-0
lines changed
4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -73,3 +73,11 @@ THEME_FALLBACK='{{THEME_FALLBACK}}'
73
73
PACKAGER='{{PACKAGER}}'
74
74
DEFAULT_TEMPLATE='{{DEFAULT_TEMPLATE}}'
75
75
ADMIN_CHAMILO_ANNOUNCEMENTS_DISABLE='{{ADMIN_CHAMILO_ANNOUNCEMENTS_DISABLE}}'
76
+
77
+ ###> google cloud storage as filesystem ###
78
+ # GOOGLE_CLOUD_PROJECT_ID=''
79
+ # GOOGLE_CLOUD_KEY_FILE_PATH=%kernel.project_dir%/config/storage_keys/project-id-12345678.json
80
+ # GOOGLE_CLOUD_STORAGE_PREFIX=''
81
+ # GOOGLE_CLOUD_STORAGE_RESOURCE_BUCKET=''
82
+ # GOOGLE_CLOUD_STORAGE_RESOURCE_CACHE_BUCKET=''
83
+ ###< google cloud storage as filesystem ###
Original file line number Diff line number Diff line change @@ -14,6 +14,18 @@ oneup_flysystem:
14
14
local :
15
15
location : ' %kernel.project_dir%/var/cache/resource'
16
16
17
+ resource_gcs_adapter :
18
+ googlecloudstorage :
19
+ client : ' Google\Cloud\Storage\StorageClient'
20
+ bucket : ' %env(GOOGLE_CLOUD_STORAGE_RESOURCE_BUCKET)%'
21
+ prefix : ' %env(GOOGLE_CLOUD_STORAGE_PREFIX)%'
22
+
23
+ resource_cache_gcs_adapter :
24
+ googlecloudstorage :
25
+ client : ' Google\Cloud\Storage\StorageClient'
26
+ bucket : ' %env(GOOGLE_CLOUD_STORAGE_RESOURCE_CACHE_BUCKET)%'
27
+ prefix : ' %env(GOOGLE_CLOUD_STORAGE_PREFIX)%'
28
+
17
29
themes_adapter :
18
30
local :
19
31
location : ' %kernel.project_dir%/var/themes'
Original file line number Diff line number Diff line change @@ -129,6 +129,12 @@ services:
129
129
- setValidator : [ '@validator' ]
130
130
- setSessionFactory : [ '@session.factory' ]
131
131
132
+ Google\Cloud\Storage\StorageClient :
133
+ arguments :
134
+ $config :
135
+ projectId : ' %env(GOOGLE_CLOUD_PROJECT_ID)%'
136
+ keyFilePath : ' %env(resolve:GOOGLE_CLOUD_KEY_FILE_PATH)%'
137
+
132
138
cocur_slugify :
133
139
lowercase : true
134
140
Original file line number Diff line number Diff line change
1
+ This directory is used to store the files needed for authentication of external file systems.
2
+ For example for the GOOGLE_CLOUD_KEY_FILE_PATH environment variable.
You can’t perform that action at this time.
0 commit comments