Closed tobyzerner closed 8 years ago
:+1:
I can take a look at this as part of flarum/issue-archive#390.
Having devs help write the config means it's going to be pretty optimal since you know the backend and know what opportunities (like caching) you can give the webserver.
However, the installation guide should be basic installation. You really don't want to be debugging through various modules when you don't even know if the basic set up is correct.
Plus, by suggesting modifying modules, you're now modifying other sites they may be running and opens up the risk of "I installed flarum and now buggy php program X stopped working! Flarum broke it!" etc etc.
Wasn't aware you could add them in htaccess.
Instead, maybe start a "Optimize Flarum" or some such page where users have a running flarum install that works and want it to use less resources or to make it faster. For example, I dropped page responses from ~240ms to ~180ms by utilizing php5-fpm's op-cache which is pretty sweet. But I wouldn't suggest it for someone who's definition of "configuring" is copying and pasting the install guide config.
My 2c
Currently working on adapting the rules from here. :)
Can someone review this on Apache? Nginx works fine for me...
@franzliedke Today I do some config with Nginx, it seems the API don't have compress. And I compare the config between Nginx and Apache, I found in Nginx config lost one gzip_types
which is application/vnd.api+json
.
@phodal I don't see application/vnd.api+json
in our Apache config.
I jut added one line that was forgotten in the Nginx config, though, thanks for the heads-up.
_1 Upvote_ Something like:
Thought it would be worth opening this up for discussion before adding though, because I don't know much about Apache config!