<div dir="ltr">Hi All,<br><div><br></div><div>I can't remember if this has been discussed before, but the eg2 staff client files are all static files that can be served via NGINX or your proxy of choice.  </div><div><br></div><div>Given how chunky the Evergreen Apache processes are, I set this up a while back to reduce the amount of traffic hitting Apache.  With bots running amok, I thought I'd share.</div><div><br></div><div>Here's my NGINX setup to serve eg2 files.  Change "expires" values to suit.</div><div><br></div><div>    location /eg2/staff/ {<br>        # If no locale is selected, redirect to en-US<br>        rewrite ^/eg2/staff/(.*) /eg2/en-US/staff/$1 redirect;<br>    }   <br>    <br>    location /eg2/en-US/ {<br>        # If an unknown file is requested, serve the index file.<br>        # This is SOP for Angular, where all paths emit from the index.<br>        try_files $uri /eg2/en-US/index.html;<br>    }   <br>    <br>    location /eg2/en-US/index.html {<br>        # Expire the index file daily to pull new builds.<br>        # No need to expire other eg2 files since they have <br>        # cache-busting hashes.<br>        expires 10m;<br>    }   <br>    <br>    location ~ /eg2/en-US/[0-9a-z\.-_]+.(js|css)$ {<br>        # These Angular files have cache-busting hashes in the<br>        # file name.  Give them a decently long expire time.<br>        expires 30d;<br>    }   <br></div><div><br></div><div>Hope it helps,</div><div><br></div><div>-b</div></div>