Add Apache virtual host configuration for user UI
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 26s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 26s
This commit is contained in:
18
Dockerfile
18
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 <<EOF
|
||||
<VirtualHost *:80>
|
||||
ServerName localhost
|
||||
DocumentRoot /var/www/html/daloradius/users
|
||||
<Directory /var/www/html/daloradius/users>
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
DirectoryIndex index.php
|
||||
ErrorLog \${APACHE_LOG_DIR}/error.log
|
||||
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
EOF' \
|
||||
&& apache2ctl -t
|
||||
|
||||
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --retries=5 CMD curl -fsS http://localhost/ || exit 1
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
Reference in New Issue
Block a user