uploads to api

beta.r3js.org
Theunis J. Botha 2017-02-03 17:13:15 +01:00
parent 14f4e16960
commit 4fa8e2071e
3 changed files with 10 additions and 4 deletions

View File

@ -11,8 +11,7 @@ var config = {
platform: 'gamewheel',
account: 'root',
subAccount: 'root'
},
uploadPath: '/uploads'
}
},
api16: {
url: "http://api-v1.6.gamewheel.local"
@ -28,7 +27,8 @@ var config = {
uploadPath: '/uploads'
},
api_v2: {
url: 'http://api-v2.gamewheel.local'
url: 'http://api-v2.gamewheel.local',
uploadPath : '/uploads'
},
editor_v3: {
url: 'http://3d-editor-v3.gamewheel.local',

View File

@ -9,6 +9,12 @@ server {
add_header Access-Control-Allow-Headers 'origin, x-requested-with, content-type, accept, authorization, Access-Control-Request-Headers, Access-Control-Request-Method, x-gw-api-rt-key, x-gw-api-rt-token';
location / {
add_header Access-Control-Allow-Origin $http_origin;
autoindex on;
try_files $uri $uri/ @node;
}
location @node {
proxy_pass_request_headers on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -18,4 +24,5 @@ server {
proxy_set_header Host $http_host;
proxy_redirect off;
}
}

View File

@ -71,7 +71,6 @@ var secure = {
autoIndex: false
}
},
uploadPath : 'uploads',
mailer: {
host: 'localhost',
port: 9025,