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;