init
This commit is contained in:
20
dashboard.conf
Normal file
20
dashboard.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user