umputun / reproxy

Simple edge server / reverse proxy
http://reproxy.io
MIT License
1.23k stars 92 forks source link

Question: Rewrite #150

Closed damianoneill closed 1 year ago

damianoneill commented 1 year ago

Hi @umputun does reproxy support the nginx concept for assets of

root    /usr/share/nginx/application;
        index  index.html;

        location / {
            rewrite ^(.*)$ /assets/js/dist/index.html break;
            expires 30m;
        }

Where the index.html isn't in the asset root directory but nested further down.

Apologies if this is obvious. I just didn't see anything in this section that hinted toward this. https://reproxy.io/#assets-server

Thanks, Damian.