This commit is contained in:
parent
1157edcc7a
commit
697feff582
@ -2,7 +2,8 @@ include apigw_backends.conf;
|
|||||||
include apigw_keys.conf;
|
include apigw_keys.conf;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
access_log /var/log/nginx/apigw_access.log main;
|
access_log /var/log/nginx/apigw_access.log main;
|
||||||
|
error_log /var/log/nginx/apigw_error.log warn;
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
# listen 443 ssl;
|
# listen 443 ssl;
|
||||||
@ -30,9 +31,6 @@ server {
|
|||||||
location = /_validate_apikey {
|
location = /_validate_apikey {
|
||||||
internal;
|
internal;
|
||||||
|
|
||||||
access_log /var/log/nginx/apigw_access.log main;
|
|
||||||
error_log /var/log/nginx/apigw_error.log warn;
|
|
||||||
|
|
||||||
if ($http_apikey = "") {
|
if ($http_apikey = "") {
|
||||||
return 401; # Unauthorized
|
return 401; # Unauthorized
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user