From 473a419e78365c501d32f9a7e23ea03094a47f80 Mon Sep 17 00:00:00 2001 From: Theunis Johannes Botha Date: Thu, 9 Feb 2017 00:28:55 +0100 Subject: [PATCH] cybafelo.local --- api16.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/api16.conf b/api16.conf index ed97c13..06d8882 100644 --- a/api16.conf +++ b/api16.conf @@ -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; } }