From 90d39acc492fdb2d775c344aa8fb0e4d1cf19841 Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Mon, 20 Mar 2017 18:26:11 +0100 Subject: [PATCH] fix api nginx --- bash_history | 25 +++++++++++++++++++++++++ nginx/api.conf | 8 +------- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/bash_history b/bash_history index 638e7ac..a36abe2 100644 --- a/bash_history +++ b/bash_history @@ -21414,3 +21414,28 @@ git push -u origin :gw-crispy git pull git branch -a exit +r +cd config/ +git diff +r +sudo service nginx restart +r +exit +ssh gw-beta +c +cd api +git diff +git commit -am "channel not content" +git push +r# +r +ssh gw-beta +vim ~/.ssh/config +ssh gw-beta +vim ~/.ssh/config +ssh gw-beta +exit +ssh gw-beta +r +l +exit diff --git a/nginx/api.conf b/nginx/api.conf index 5f869c9..889048d 100644 --- a/nginx/api.conf +++ b/nginx/api.conf @@ -6,13 +6,7 @@ server { root /usr/share/gamewheel/api; - location / { - add_header Access-Control-Allow-Origin $http_origin; - autoindex on; - try_files $uri $uri/ @node; - } - - location @node { + location / { proxy_pass_request_headers on; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;