فهرست منبع

Add support of admin authentication in apache2 and nginx for various probes

Emmanuel Bouthenot 12 سال پیش
والد
کامیت
1dbf5ddd77
3فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 2 0
      group_vars/all
  2. 1 0
      roles/webserver/templates/apache2/auth_admin.j2
  3. 1 0
      roles/webserver/templates/nginx/auth_admin.j2

+ 2 - 0
group_vars/all

@@ -27,4 +27,6 @@ with_ssh: True
 ssh_port: 2222
 ssh_ecdsa_key: True
 
+http_auth_admin_password: seVDetGvSs7nA # openssl passwd -crypt adm123in
+
 # vim: ft=yaml

+ 1 - 0
roles/webserver/templates/apache2/auth_admin.j2

@@ -0,0 +1 @@
+admin:{{ http_auth_admin_password }}

+ 1 - 0
roles/webserver/templates/nginx/auth_admin.j2

@@ -0,0 +1 @@
+admin:{{ http_auth_admin_password }}