openvibers/openvibe.ai Commits
Publish the creation catalogue on the AI vhost (#472)
Changes
@@@ -190,6 +190,7 @@ server {# ── What AI can make (ai.creation-list@1): public, cached and CORS open, for the site, an app or a# page. The app answers the same ACAO * on a preflight, so OPTIONS is proxied like the GETs. ──location = /api/v1/creations {++ limit_except GET OPTIONS { deny all; }proxy_pass http://127.0.0.1:4700;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;@@@ -198,6 +199,7 @@ server {proxy_set_header X-Forwarded-Proto $scheme;}location = /api/v1/creations.md {++ limit_except GET OPTIONS { deny all; }proxy_pass http://127.0.0.1:4700;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;
@@ -190,6 +190,7 @@ server {
@@ -190,6 +190,7 @@ server {
# ── What AI can make (ai.creation-list@1): public, cached and CORS open, for the site, an app or a
# ── What AI can make (ai.creation-list@1): public, cached and CORS open, for the site, an app or a
# page. The app answers the same ACAO * on a preflight, so OPTIONS is proxied like the GETs. ──
# page. The app answers the same ACAO * on a preflight, so OPTIONS is proxied like the GETs. ──
location = /api/v1/creations {
location = /api/v1/creations {
+ limit_except GET OPTIONS { deny all; }
proxy_pass http://127.0.0.1:4700;
proxy_pass http://127.0.0.1:4700;
proxy_set_header Host $host;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
@@ -198,6 +199,7 @@ server {
@@ -198,6 +199,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
location = /api/v1/creations.md {
location = /api/v1/creations.md {
+ limit_except GET OPTIONS { deny all; }
proxy_pass http://127.0.0.1:4700;
proxy_pass http://127.0.0.1:4700;
proxy_set_header Host $host;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;