mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
s3: setup ext storage
This commit is contained in:
parent
17738c8bbb
commit
edfebef33b
1 changed files with 22 additions and 0 deletions
|
|
@ -155,4 +155,26 @@ impl ServiceTrait for ObjectStore {
|
|||
fn apps(&self) -> &'static [&'static str] {
|
||||
&["files_external"]
|
||||
}
|
||||
|
||||
async fn post_setup(
|
||||
&self,
|
||||
_docker: &Docker,
|
||||
_cloud_id: &str,
|
||||
_config: &HazeConfig,
|
||||
) -> Result<Vec<String>> {
|
||||
if *self == ObjectStore::S3 {
|
||||
Ok(vec![
|
||||
"occ files_external:create s3 amazons3 amazons3::accesskey".into(),
|
||||
"occ files_external:config 1 bucket ext".into(),
|
||||
"occ files_external:config 1 hostname s3".into(),
|
||||
"occ files_external:config 1 port 9000".into(),
|
||||
"occ files_external:config 1 use_ssl false".into(),
|
||||
"occ files_external:config 1 use_path_style true".into(),
|
||||
"occ files_external:config 1 key minio".into(),
|
||||
"occ files_external:config 1 secret minio123".into(),
|
||||
])
|
||||
} else {
|
||||
Ok(Vec::new())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue