@@ -27,6 +27,8 @@ class ConfigOptionsList implements ConfigOptionsListInterface
27
27
private const CONFIG_PATH__REMOTE_STORAGE_DRIVER = RemoteDriverPool::PATH_DRIVER ;
28
28
private const OPTION_REMOTE_STORAGE_PREFIX = 'remote-storage-prefix ' ;
29
29
private const CONFIG_PATH__REMOTE_STORAGE_PREFIX = RemoteDriverPool::PATH_PREFIX ;
30
+ private const OPTION_REMOTE_STORAGE_ENDPOINT = 'remote-storage-endpoint ' ;
31
+ private const CONFIG_PATH__REMOTE_STORAGE_ENDPOINT = RemoteDriverPool::PATH_CONFIG . '/endpoint ' ;
30
32
private const OPTION_REMOTE_STORAGE_BUCKET = 'remote-storage-bucket ' ;
31
33
private const CONFIG_PATH__REMOTE_STORAGE_BUCKET = RemoteDriverPool::PATH_CONFIG . '/bucket ' ;
32
34
private const OPTION_REMOTE_STORAGE_REGION = 'remote-storage-region ' ;
@@ -35,6 +37,8 @@ class ConfigOptionsList implements ConfigOptionsListInterface
35
37
private const CONFIG_PATH__REMOTE_STORAGE_ACCESS_KEY = RemoteDriverPool::PATH_CONFIG . '/credentials/key ' ;
36
38
private const OPTION_REMOTE_STORAGE_SECRET_KEY = 'remote-storage-secret ' ;
37
39
private const CONFIG_PATH__REMOTE_STORAGE_SECRET_KEY = RemoteDriverPool::PATH_CONFIG . '/credentials/secret ' ;
40
+ private const OPTION_REMOTE_STORAGE_PATH_STYLE = 'remote-storage-path-style ' ;
41
+ private const CONFIG_PATH__REMOTE_STORAGE_PATH_STYLE = RemoteDriverPool::PATH_CONFIG . '/path-style ' ;
38
42
39
43
/**
40
44
* Map of option to config path relations.
@@ -43,10 +47,12 @@ class ConfigOptionsList implements ConfigOptionsListInterface
43
47
*/
44
48
private static $ map = [
45
49
self ::OPTION_REMOTE_STORAGE_PREFIX => self ::CONFIG_PATH__REMOTE_STORAGE_PREFIX ,
50
+ self ::OPTION_REMOTE_STORAGE_ENDPOINT => self ::CONFIG_PATH__REMOTE_STORAGE_ENDPOINT ,
46
51
self ::OPTION_REMOTE_STORAGE_BUCKET => self ::CONFIG_PATH__REMOTE_STORAGE_BUCKET ,
47
52
self ::OPTION_REMOTE_STORAGE_REGION => self ::CONFIG_PATH__REMOTE_STORAGE_REGION ,
48
53
self ::OPTION_REMOTE_STORAGE_ACCESS_KEY => self ::CONFIG_PATH__REMOTE_STORAGE_ACCESS_KEY ,
49
- self ::OPTION_REMOTE_STORAGE_SECRET_KEY => self ::CONFIG_PATH__REMOTE_STORAGE_SECRET_KEY
54
+ self ::OPTION_REMOTE_STORAGE_SECRET_KEY => self ::CONFIG_PATH__REMOTE_STORAGE_SECRET_KEY ,
55
+ self ::OPTION_REMOTE_STORAGE_PATH_STYLE => self ::CONFIG_PATH__REMOTE_STORAGE_PATH_STYLE
50
56
];
51
57
52
58
/**
@@ -89,6 +95,12 @@ public function getOptions(): array
89
95
'Remote storage prefix ' ,
90
96
''
91
97
),
98
+ new TextConfigOption (
99
+ self ::OPTION_REMOTE_STORAGE_ENDPOINT ,
100
+ TextConfigOption::FRONTEND_WIZARD_TEXT ,
101
+ self ::CONFIG_PATH__REMOTE_STORAGE_ENDPOINT ,
102
+ 'Remote storage endpoint '
103
+ ),
92
104
new TextConfigOption (
93
105
self ::OPTION_REMOTE_STORAGE_BUCKET ,
94
106
TextConfigOption::FRONTEND_WIZARD_TEXT ,
@@ -114,6 +126,13 @@ public function getOptions(): array
114
126
self ::CONFIG_PATH__REMOTE_STORAGE_SECRET_KEY ,
115
127
'Remote storage secret key ' ,
116
128
''
129
+ ),
130
+ new TextConfigOption (
131
+ self ::OPTION_REMOTE_STORAGE_PATH_STYLE ,
132
+ TextConfigOption::FRONTEND_WIZARD_PASSWORD ,
133
+ self ::CONFIG_PATH__REMOTE_STORAGE_PATH_STYLE ,
134
+ 'Remote storage path style ' ,
135
+ '0 '
117
136
)
118
137
];
119
138
}
0 commit comments