cybafelo.local

beta.r3js.org
Theunis Johannes Botha 2017-02-09 00:28:55 +01:00
parent 0a4004590a
commit 473a419e78
1 changed files with 8 additions and 3 deletions

View File

@ -2,12 +2,18 @@
server {
listen 80;
server_name api16.gamewheel.local;
server_name api16.cybafelo.local;
access_log /var/log/nginx/access.log tj;
root /usr/share/gamewheel/GW_Config;
location / {
add_header Access-Control-Allow-Origin $http_origin;
add_header 'Access-Control-Allow-Origin' $http_origin;
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Max-Age' 1;
autoindex on;
try_files $uri $uri/ @node;
}
@ -19,7 +25,6 @@ server {
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:3104;
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_redirect off;
}
}