In all the tutorials one may come across for setting up X-Accel-Redirect for nginx, there is always a bit about indicating a certain location is private, like so:
location /protected/ {
internal;
root /some/path;
}
The files I'm sending to my users are in RAILS_ROOT/private_uploads. This is not inside the public folder, meaning that there are no URLs that point to directly to the files in this folder.
So am I correct in assuming I can ignore that bit of nginx config for my setup? If not, what config would I need?
I'm using Passenger, btw, and my config is really basic:
server {
listen 80;
server_name mydomain.com;
root RAILS_ROOT/public;
passenger_enabled on;
}