mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 16:54:08 +02:00
add sftp with key authentication service
This commit is contained in:
parent
f99238121b
commit
204fb676d6
19 changed files with 348 additions and 135 deletions
|
|
@ -119,7 +119,7 @@ impl ServiceTrait for Office {
|
|||
docker: &Docker,
|
||||
cloud_id: &str,
|
||||
config: &HazeConfig,
|
||||
) -> Result<Vec<String>> {
|
||||
) -> Result<Vec<Vec<String>>> {
|
||||
let container = &self.container_name(cloud_id).unwrap();
|
||||
let info = docker
|
||||
.inspect_container(container, None)
|
||||
|
|
@ -152,8 +152,22 @@ impl ServiceTrait for Office {
|
|||
.addr_with_port(container, ip, self.proxy_port());
|
||||
|
||||
Ok(vec![
|
||||
format!(r#"occ config:app:set richdocuments public_wopi_url --value="{public}""#),
|
||||
r#"occ richdocuments:setup --wopi-url "http://office:9980" --callback-url "http://cloud""#.into(),
|
||||
vec![
|
||||
"occ".into(),
|
||||
"config:app:set".into(),
|
||||
"richdocuments".into(),
|
||||
"public_wopi_url".into(),
|
||||
"--value".into(),
|
||||
public,
|
||||
],
|
||||
vec![
|
||||
"occ".into(),
|
||||
"richdocuments:setup".into(),
|
||||
"--wopi-url".into(),
|
||||
"http://office:9980".into(),
|
||||
"--callback-url".into(),
|
||||
"http://cloud".into(),
|
||||
],
|
||||
])
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue