Commit d58f2674 authored by Simonas's avatar Simonas

basic auth added

parent b38b89c1
...@@ -27,6 +27,18 @@ location /wp-json/api/v1/contacts { ...@@ -27,6 +27,18 @@ location /wp-json/api/v1/contacts {
# auth_basic_user_file /var/www/html/.htpasswd; # auth_basic_user_file /var/www/html/.htpasswd;
} }
location /wp-json/api/v1/recommended {
try_files $uri $uri/ /index.php?$args;
auth_basic "Basic auth";
auth_basic_user_file /etc/nginx/.htpasswd;
}
location /wp-json/api/v1/import-positions {
try_files $uri $uri/ /index.php?$args;
auth_basic "Basic auth";
auth_basic_user_file /etc/nginx/.htpasswd;
}
location = /wp-admin/admin-post.php { location = /wp-admin/admin-post.php {
access_log /var/log/nginx/postdata.log postdata; access_log /var/log/nginx/postdata.log postdata;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment