mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
set NEXTCLOUD_BASE_URL in container
This commit is contained in:
parent
c86bc58305
commit
16cb573935
1 changed files with 6 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ use itertools::Itertools;
|
|||
use maplit::hashmap;
|
||||
use miette::{IntoDiagnostic, Report, Result, WrapErr};
|
||||
use reqwest::{Client, Url};
|
||||
use std::net::IpAddr;
|
||||
use std::net::{IpAddr, Ipv4Addr};
|
||||
use std::str::FromStr;
|
||||
use std::time::Duration;
|
||||
use tokio::time::{sleep, timeout};
|
||||
|
|
@ -157,7 +157,7 @@ impl PhpVersion {
|
|||
&self,
|
||||
docker: &Docker,
|
||||
id: &str,
|
||||
env: Vec<String>,
|
||||
mut env: Vec<String>,
|
||||
db: &Database,
|
||||
network: &str,
|
||||
volumes: Vec<String>,
|
||||
|
|
@ -187,6 +187,10 @@ impl PhpVersion {
|
|||
hosts
|
||||
};
|
||||
hosts.push(format!("hazehost:{host}"));
|
||||
env.push(format!(
|
||||
"NEXTCLOUD_BASE_URL={}",
|
||||
proxy_config.addr(id, IpAddr::V4(Ipv4Addr::LOCALHOST))
|
||||
));
|
||||
|
||||
let config = Config {
|
||||
image: Some(self.image().to_string()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue