ai-traders / liget

NuGet server and cache running on kestrel in docker
MIT License
216 stars 29 forks source link

How to run LiGet behind an Nginx Reverse Proxy #36

Open nakedelement-gb opened 3 years ago

nakedelement-gb commented 3 years ago

I want to be able to run LiGet behind an Nginx Reverse Proxy:

 location  /liget {
            rewrite /liget/(.*) /$1  break;
            proxy_pass         http://liget:9011;
            proxy_redirect     off;
            proxy_set_header   Host $host;
        }

The issue I've got is convincing LiGet to load the SPA JS from /liget/, rather than /. I can't find a suitable setting and I've failed to build LiGet, to make my own changes, on both Windows and Linux.

Any help greatly appreciated.