Add object to Nginx api configuration
parent
fd84b2ffa9
commit
a03b36e0c3
|
@ -21,7 +21,7 @@ server {
|
||||||
location /api/v1/ {
|
location /api/v1/ {
|
||||||
try_files $uri $uri/ /json_api.php?$args;
|
try_files $uri $uri/ /json_api.php?$args;
|
||||||
}
|
}
|
||||||
rewrite ^/api/v1/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&object=$2? last;
|
rewrite ^/api/v1/([^/]+)/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&cat=$2&object=$3? last;
|
||||||
|
|
||||||
location ^~ /.well-known/acme-challenge/ {
|
location ^~ /.well-known/acme-challenge/ {
|
||||||
allow all;
|
allow all;
|
||||||
|
@ -170,7 +170,7 @@ server {
|
||||||
location /api/v1/ {
|
location /api/v1/ {
|
||||||
try_files $uri $uri/ /json_api.php?$args;
|
try_files $uri $uri/ /json_api.php?$args;
|
||||||
}
|
}
|
||||||
rewrite ^/api/v1/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&object=$2? last;
|
rewrite ^/api/v1/([^/]+)/([^/]+)/([^/]+)/?$ /json_api.php?action=$1&cat=$2&object=$3? last;
|
||||||
|
|
||||||
location ^~ /.well-known/acme-challenge/ {
|
location ^~ /.well-known/acme-challenge/ {
|
||||||
allow all;
|
allow all;
|
||||||
|
|
Loading…
Reference in New Issue