heroku / heroku-buildpack-static

[DEPRECATED] Heroku buildpack for handling static sites and single page web apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to deny some locations

bugchecker opened this issue · comments

When I tried to use {"root": "."} I've got public access to some files (bin/, config/, logs/, static.json). So maybe do one of below actions:

  1. Allow to deny some locations in static.json.
  2. Allow routes' $path be tried before $uri:
    <% if clean_urls %>
    try_files $uri.html $uri $uri/ $path $fallback;
    <% else %>
    try_files $uri $path $fallback;
    <% end %>
  3. Automatically detect {"root": "."} and deny dangerous prefixes (be attention with /non-blocked-location/../static.json)

Hi

This buildpack is now deprecated and we are recommending people move the more actively maintained heroku-buildpack-nginx. For migration advice see here.

As such, I'm closing this issue out since we won't be making further changes to this buildpack.