20 lines
575 B
Plaintext
20 lines
575 B
Plaintext
<VirtualHost *:80>
|
|
ServerName dashboard.home.lab
|
|
|
|
# Проксируем в Kubernetes Dashboard
|
|
ProxyPreserveHost On
|
|
ProxyPass / http://192.168.49.2:30080/
|
|
ProxyPassReverse / http://192.168.49.2:30080/
|
|
|
|
# Basic Auth защита
|
|
<Location />
|
|
AuthType Basic
|
|
AuthName "Kubernetes Dashboard"
|
|
AuthUserFile /etc/apache2/auth/dashboard.users
|
|
Require valid-user
|
|
</Location>
|
|
|
|
# Логи
|
|
ErrorLog ${APACHE_LOG_DIR}/dashboard_error.log
|
|
CustomLog ${APACHE_LOG_DIR}/dashboard_access.log combined
|
|
</VirtualHost> |