openvibers/openvibe.space Commits

Space vhost: /spaces itself goes to the app (a prefix location for /spaces/ made nginx answer /spaces with a 301 to /spaces/) (#60)

OP OpenVibers committed 28 days ago · 2406dc6ee6 · 1 file, +1 −1

Changes

ddiff --git a/deploy/nginx/openvibe.space.conf b/deploy/nginx/openvibe.space.conf
iindex d26b280..9a5403c 100644
---- a/deploy/nginx/openvibe.space.conf
++++ b/deploy/nginx/openvibe.space.conf
@@@ -145,7 +145,7 @@ server {
}
# ── Spaces: the editor saves a space's files (SPACE_SPACE_MAX_BYTES, 1 MB of text) as JSON. ──
-- location /spaces/ {
++ location ~ ^/spaces(/|$) {
client_max_body_size 3m;
limit_req zone=ovspace_api burst=30 nodelay;
proxy_pass http://127.0.0.1:4940;