1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

push: go trough proxy

This commit is contained in:
Robin Appelman 2023-02-23 14:36:33 +01:00
commit 48843efe1a
2 changed files with 6 additions and 5 deletions

View file

@ -86,12 +86,15 @@ impl ServiceTrait for NotifyPush {
&self,
docker: &Docker,
cloud_id: &str,
_config: &HazeConfig,
config: &HazeConfig,
) -> Result<Vec<String>> {
let ip = self.get_ip(docker, cloud_id).await?;
let addr = config
.proxy
.addr_with_port(&self.container_name(cloud_id), ip, 7867);
Ok(vec![
format!("occ config:system:set trusted_proxies 1 --value {}", ip),
format!("occ notify_push:setup http://{}:7867", ip),
format!("occ notify_push:setup {}", addr),
])
}
}