Use the Statamic template in Forge. At time of writing, this enables:
- The serving of static html files (ignored if Statamic is not set to 'full' cache)
- Static caching of
jpg|jpeg|png|gif|css|js|woff2
files. Note we ignore PDFs because it is likely that a client will upload new PDFs with the same name.
- At the moment, we need to go in after installing a site and set to 5.
To get an idea of what to use for the pm.max_children, you can use this calculation: pm.max_children = Total RAM dedicated to the web server / Max child process size. Remember to leave some RAM for extra services you have running on your system.
Potentially helpful information: https://gist.github.com/holmberd/44fa5c2555139a1a46e01434d3aaa512
- Edit config/google-fonts.php with the URL string you want to use.
- Make sure in production to run
php artisan storage:link
. This only needs to be done once.- This symlinks the
public
disk so it is publicly accessible.
- This symlinks the
- Make sure
@googleFonts
Blade tag is used in<head>
.
- Set
AKISMET_API_KEY=
in your env file.