From f88d3758136cc39874386239e187c04a55c870e7 Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Mon, 22 Jul 2024 17:54:43 +0300 Subject: [PATCH] Document production sw-server setup ref #791 --- hosting/scaleworkshop.nginx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hosting/scaleworkshop.nginx b/hosting/scaleworkshop.nginx index e077b80f..92207d08 100644 --- a/hosting/scaleworkshop.nginx +++ b/hosting/scaleworkshop.nginx @@ -6,6 +6,20 @@ server { add_header Access-Control-Allow-Origin *; } + location /api/scale { + proxy_set_header Host $host; + # Other headers omitted + + proxy_pass http://127.0.0.1:17461/scale; + } + + location /api/scale/(.*) { + proxy_set_header Host $host; + # Other headers omitted + + proxy_pass http://127.0.0.1:17461/scale/$1; + } + location / { root /var/www/scaleworkshop; index index.html;