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)
Changes
@@@ -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;
@@ -145,7 +145,7 @@ server {
@@ -145,7 +145,7 @@ server {
}
}
# ── Spaces: the editor saves a space's files (SPACE_SPACE_MAX_BYTES, 1 MB of text) as JSON. ──
# ── 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;
client_max_body_size 3m;
limit_req zone=ovspace_api burst=30 nodelay;
limit_req zone=ovspace_api burst=30 nodelay;
proxy_pass http://127.0.0.1:4940;
proxy_pass http://127.0.0.1:4940;