|
@@ -30,6 +30,13 @@ server {
|
|
|
{% if phpmyadmin_http_auth %}
|
|
|
auth_basic "Restricted Access";
|
|
|
auth_basic_user_file /etc/nginx/auth_admin;
|
|
|
+{% if phpmyadmin_http_whitelist_ip|length > 0 %}
|
|
|
+{% for ip in phpmyadmin_http_whitelist_ip %}
|
|
|
+ allow {{ ip }};
|
|
|
+{% endfor %}
|
|
|
+ deny all;
|
|
|
+ satisfy any;
|
|
|
+{% endif %}
|
|
|
{% endif %}
|
|
|
|
|
|
client_max_body_size 128m;
|
|
@@ -64,6 +71,13 @@ server {
|
|
|
{% if phpmyadmin_http_auth %}
|
|
|
auth_basic "Restricted Access";
|
|
|
auth_basic_user_file /etc/nginx/auth_admin;
|
|
|
+{% if phpmyadmin_http_whitelist_ip|length > 0 %}
|
|
|
+{% for ip in phpmyadmin_http_whitelist_ip %}
|
|
|
+ allow {{ ip }};
|
|
|
+{% endfor %}
|
|
|
+ deny all;
|
|
|
+ satisfy any;
|
|
|
+{% endif %}
|
|
|
{% endif %}
|
|
|
|
|
|
client_max_body_size 128m;
|