Custom folder setup
Fountain has no “opinions” on how the file and folder structure looks, but here are a few things to consider.
Kirby default setup
Works fine, but a custom setup is recommend for the extra security. When you host a website, your web server has a public folder where files are accessible to anyone visiting your site. Anything outside that folder is not reachable from a browser.
This could potentially expose configuration files, credentials, and fonts.
Shared hosting
Some shared webhosting, e.g. Uberspace, keep you content in your user folder. The web root is accessible to anyone. Uberspace will work fine if you follow this guide: “Hosting with Uberspace”.
Fountain default setup
The default setup with Fountain looks like this and comes included as an option.
| Folder | Info |
|---|---|
/data |
Persistent folder, not public |
/data/content |
Site content, including fonts |
/data/storage |
|
/data/storage/accounts |
Users, including customers |
/data/storage/cache |
|
/data/storage/logs |
|
/data/storage/session |
|
/html |
Public folder, where index.php and .htaccess lives |
/html/assets |
Public assets-folder |
/html/media |
Public media-folder, Kirby serves e.g. WOFF2-files from here |