1
0
Fork 0
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:
Robin Appelman 2026-02-05 16:04:33 +01:00
commit 16cb573935

View file

@ -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()),