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; } }