cybafelo.local
parent
0a4004590a
commit
473a419e78
11
api16.conf
11
api16.conf
|
@ -2,12 +2,18 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
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;
|
root /usr/share/gamewheel/GW_Config;
|
||||||
|
|
||||||
location / {
|
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;
|
autoindex on;
|
||||||
try_files $uri $uri/ @node;
|
try_files $uri $uri/ @node;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +25,6 @@ server {
|
||||||
proxy_set_header X-NginX-Proxy true;
|
proxy_set_header X-NginX-Proxy true;
|
||||||
proxy_pass http://127.0.0.1:3104;
|
proxy_pass http://127.0.0.1:3104;
|
||||||
proxy_ssl_session_reuse off;
|
proxy_ssl_session_reuse off;
|
||||||
proxy_set_header Host $http_host;
|
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue