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:
parent
d943766267
commit
48843efe1a
2 changed files with 6 additions and 5 deletions
|
|
@ -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),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue