From f362aac24676d7bbb2b81b05857520e23ff6d921 Mon Sep 17 00:00:00 2001 From: Falgn0n <15193343+Falgn0n@users.noreply.github.com> Date: Sun, 24 Dec 2017 12:13:28 +0200 Subject: [PATCH] Update example.nginx.conf Updated the location block for "/api/config" to point directly to the node.js server @ localhost:3000 --- docs/example.nginx.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/example.nginx.conf b/docs/example.nginx.conf index 37cb0da60..d56920bf5 100644 --- a/docs/example.nginx.conf +++ b/docs/example.nginx.conf @@ -66,11 +66,14 @@ server { rewrite ^/customize/(.*)$ $1 break; try_files /customize/$uri /customize.dist/$uri; } - location = /api/config { - default_type text/javascript; - rewrite ^.*$ /customize/api/config break; - } + location = /api/config { + proxy_pass http://localhost:3000; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location ^~ /blob/ { try_files $uri =404; }