From 617de13689e7286c04f54e7e5d981e4ad5446afd Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Tue, 12 Aug 2025 08:41:53 -0500 Subject: [PATCH] Add Apache virtual host configuration for user UI --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Dockerfile b/Dockerfile index b1bbe1c..b20cc44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -79,6 +79,24 @@ fi exec apachectl -DFOREGROUND EOF +# Replace default vhost so root serves the users UI +RUN bash -lc 'cat >/etc/apache2/sites-available/000-default.conf < + ServerName localhost + DocumentRoot /var/www/html/daloradius/users + + AllowOverride All + Require all granted + + DirectoryIndex index.php + ErrorLog \${APACHE_LOG_DIR}/error.log + CustomLog \${APACHE_LOG_DIR}/access.log combined + +EOF' \ + && apache2ctl -t + + + HEALTHCHECK --interval=30s --timeout=5s --retries=5 CMD curl -fsS http://localhost/ || exit 1 RUN chmod +x /entrypoint.sh