Changes to api path
This commit is contained in:
@@ -18,10 +18,9 @@ server {
|
||||
access_log /var/log/nginx/access.log;
|
||||
root /web;
|
||||
|
||||
location /api/v1/ {
|
||||
try_files $uri $uri/ /json_api.php?$args;
|
||||
location ~ ^/api/v1/(.*)$ {
|
||||
try_files $uri $uri/ /json_api.php?query=$1;
|
||||
}
|
||||
rewrite ^/api/v1/([^/]+)/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&cat=$2&object=$3? last;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
allow all;
|
||||
@@ -167,10 +166,9 @@ server {
|
||||
access_log /var/log/nginx/access.log;
|
||||
root /web;
|
||||
|
||||
location /api/v1/ {
|
||||
try_files $uri $uri/ /json_api.php?$args;
|
||||
location ~ ^/api/v1/(.*)$ {
|
||||
try_files $uri $uri/ /json_api.php?query=$1;
|
||||
}
|
||||
rewrite ^/api/v1/([^/]+)/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&cat=$2&object=$3? last;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
allow all;
|
||||
|
Reference in New Issue
Block a user