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 @@ -59,3 +59,11 @@ JWT_PASSPHRASE=your_secret_passphrase
59
59
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
60
60
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
61
61
###< symfony/messenger ###
62
+
63
+ ###> google cloud storage as filesystem ###
64
+ # GOOGLE_CLOUD_PROJECT_ID=''
65
+ # GOOGLE_CLOUD_KEY_FILE_PATH=%kernel.project_dir%/config/storage_keys/project-id-12345678.json
66
+ # GOOGLE_CLOUD_STORAGE_PREFIX=''
67
+ # GOOGLE_CLOUD_STORAGE_RESOURCE_BUCKET=''
68
+ # GOOGLE_CLOUD_STORAGE_RESOURCE_CACHE_BUCKET=''
69
+ ###< 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 @@ -111,6 +111,12 @@ services:
111
111
- setMessengerBus : [ '@messenger.bus.default' ]
112
112
- setValidator : [ '@validator' ]
113
113
114
+ Google\Cloud\Storage\StorageClient :
115
+ arguments :
116
+ $config :
117
+ projectId : ' %env(GOOGLE_CLOUD_PROJECT_ID)%'
118
+ keyFilePath : ' %env(resolve:GOOGLE_CLOUD_KEY_FILE_PATH)%'
119
+
114
120
cocur_slugify :
115
121
lowercase : true
116
122
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