From 5cf74f6b85e80249aac385f48e7f8eb221f418cf Mon Sep 17 00:00:00 2001 From: ntimo Date: Wed, 2 Oct 2019 22:13:47 +0200 Subject: [PATCH] [NGINX] Make API docs accessible using /api/ --- data/conf/nginx/site.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index 0f2b8acf..a31d4680 100644 --- a/data/conf/nginx/site.conf +++ b/data/conf/nginx/site.conf @@ -76,6 +76,10 @@ server { rewrite ^(.*)$ $1.php last; } + location /api/ { + try_files /_apidocs.html; + } + location ~ ^/api/v1/(.*)$ { try_files $uri $uri/ /json_api.php?query=$1; }