4 ms·
It's good information but... 1. Why is your favicon in the uploads directory? Usually, those would be at the root of your site or in an image directory? 2. Wh
by hk1337 2y ago
It's good information but...
1. Why is your favicon in the uploads directory? Usually, those would be at the root of your site or in an image directory?
2. Why is there an uploads directory for a static site hosted on GitHub? I don't believe that is useful on GitHub, is it? You cannot have visitors upload files to it, right?
- gwd 2y agoSpeaking for myself: 1. I want nginx to serve static files, and everything else to be reverse proxied to the webapp 2. The configuration file that allows /favicon.ico (and others) to be a file but / and other paths to be passed to the webapp is kind of ugly. Here's mine: location ~* ^/(favicon.ico|apple-touch-icon.png)$ { root $icons_path; } In my own case I've so far decided to accept the ugly config file, but as you can see, I haven't gotten around to adding even a robots.txt or any of the other files the modern web ecosystem expects; and adding them involves adding them one-by-one. I can see why someone would say, "Why make an ugly hack of an nginx config, when I can just define the favicon location in the metadata to a path easily configured to be files-only?"