1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +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 maplit::hashmap;
use miette::{IntoDiagnostic, Report, Result, WrapErr}; use miette::{IntoDiagnostic, Report, Result, WrapErr};
use reqwest::{Client, Url}; use reqwest::{Client, Url};
use std::net::IpAddr; use std::net::{IpAddr, Ipv4Addr};
use std::str::FromStr; use std::str::FromStr;
use std::time::Duration; use std::time::Duration;
use tokio::time::{sleep, timeout}; use tokio::time::{sleep, timeout};
@ -157,7 +157,7 @@ impl PhpVersion {
&self, &self,
docker: &Docker, docker: &Docker,
id: &str, id: &str,
env: Vec<String>, mut env: Vec<String>,
db: &Database, db: &Database,
network: &str, network: &str,
volumes: Vec<String>, volumes: Vec<String>,
@ -187,6 +187,10 @@ impl PhpVersion {
hosts hosts
}; };
hosts.push(format!("hazehost:{host}")); hosts.push(format!("hazehost:{host}"));
env.push(format!(
"NEXTCLOUD_BASE_URL={}",
proxy_config.addr(id, IpAddr::V4(Ipv4Addr::LOCALHOST))
));
let config = Config { let config = Config {
image: Some(self.image().to_string()), image: Some(self.image().to_string()),