openvibers/openvibe.search Commits
nginx: route /openapi.json to Search (#130)
Changes
@@@ -94,6 +94,9 @@ server {# The agent layer (openvibe-shared/agent-layer): the manifest an agent reads first, and the Markdown twins of# the front page and /updates (a result page's twin answers on / with ?format=markdown, already proxied).location = /.well-known/agent.json { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }++ # The API's own description (SEO-3): the document, and the 308 the /api/v1 spelling answers with.++ location = /openapi.json { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }++ location = /api/v1/openapi.json { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }location ~ "^/(index|updates)\.md$" { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }# The IndexNow key file (8-128 letters and digits); Node answers 404 unless it is INDEXNOW_KEY.location ~ "^/[A-Za-z0-9]{8,128}\.txt$" { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }
@@ -94,6 +94,9 @@ server {
@@ -94,6 +94,9 @@ server {
# The agent layer (openvibe-shared/agent-layer): the manifest an agent reads first, and the Markdown twins of
# The agent layer (openvibe-shared/agent-layer): the manifest an agent reads first, and the Markdown twins of
# the front page and /updates (a result page's twin answers on / with ?format=markdown, already proxied).
# the front page and /updates (a result page's twin answers on / with ?format=markdown, already proxied).
location = /.well-known/agent.json { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }
location = /.well-known/agent.json { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }
+ # The API's own description (SEO-3): the document, and the 308 the /api/v1 spelling answers with.
+ location = /openapi.json { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }
+ location = /api/v1/openapi.json { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }
location ~ "^/(index|updates)\.md$" { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }
location ~ "^/(index|updates)\.md$" { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }
# The IndexNow key file (8-128 letters and digits); Node answers 404 unless it is INDEXNOW_KEY.
# The IndexNow key file (8-128 letters and digits); Node answers 404 unless it is INDEXNOW_KEY.
location ~ "^/[A-Za-z0-9]{8,128}\.txt$" { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }
location ~ "^/[A-Za-z0-9]{8,128}\.txt$" { limit_except GET { deny all; } proxy_pass http://127.0.0.1:4710; }