config updates
commit
d3ed1f63f5
|
@ -0,0 +1,46 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
|
||||
server_name 3d-editor.gamewheel.local 3d-editor-debug.gamewheel.local;
|
||||
|
||||
root /srv/gamewheel.local/3d-editor;
|
||||
index index.html;
|
||||
|
||||
access_log /var/log/nginx/3d-editor.gamewheel.local.access.log;
|
||||
error_log /var/log/nginx/3d-editor.gamewheel.local.error.log;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
# location ~ \.php$ {
|
||||
# fastcgi_pass 127.0.0.1:9001;
|
||||
# fastcgi_index index.php;
|
||||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
# fastcgi_param SCRIPT_URL $request_uri;
|
||||
# fastcgi_param SERVER_NAME $http_host;
|
||||
# include fastcgi_params;
|
||||
# }
|
||||
|
||||
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;
|
||||
proxy_set_header X-NginX-Proxy true;
|
||||
# Replace here with proper host/port
|
||||
proxy_pass http://127.0.0.1:3103;
|
||||
proxy_ssl_session_reuse off;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
}
|
11
config.js
11
config.js
|
@ -13,7 +13,13 @@ var config = {
|
|||
url: "http://3d-editor.gamewheel.com",
|
||||
port: 3103,
|
||||
debugPort: 3203,
|
||||
cluster: false
|
||||
cluster: false,
|
||||
default: {
|
||||
platform: 'gamewheel',
|
||||
account: 'root',
|
||||
subAccount: 'root'
|
||||
},
|
||||
uploadPath : '/uploads'
|
||||
},
|
||||
api16: {
|
||||
url: "http://api16.gamewheel.com",
|
||||
|
@ -47,6 +53,9 @@ var config = {
|
|||
}
|
||||
},
|
||||
sessionKey: 'iJswK29klj20Jos02mJK8ud9239j23'
|
||||
},
|
||||
environment: {
|
||||
mode : 'production'
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue