From f373ead95fb5beb962c376b5b7b46dfde8ac4e57 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Feb 2026 22:57:27 -0500 Subject: update website to work with crimson framework --- src/web/config.php | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) (limited to 'src/web/config.php') diff --git a/src/web/config.php b/src/web/config.php index 8689b8e..4a4e830 100644 --- a/src/web/config.php +++ b/src/web/config.php @@ -1,26 +1,33 @@ 'home' sends / to /home +// +// style - single or list of css styles to load on specific routes +// +// js - single or list of js script to load on specific routes +// +// autoload - list of directories to autoload all PHP files in them +// +define('SITE_CONFIG', array( /* core config settings */ - 'domain' => 'freya.cat', - 'allowed_hosts' => ['freya.cat', 'www.freya.cat'], - 'base_path' => '/', + 'domain' => getenv("WEBSITE_HOST"), + 'allowed_hosts' => explode(" ", getenv("WEBSITE_ALLOWED_HOSTS")), + 'base_path' => getenv("WEBSITE_BASE_PATH"), 'theme_color' => '#181818', - 'git_url' => 'https://g.freya.cat/freya', + 'git_url' => 'https://g.freya.cat', /* route overides */ 'routes' => array( '' => 'home', @@ -39,4 +46,8 @@ define('CONFIG', array( 'js' => array( 'blog' => 'js/prism.js', ), + /* directories to autoload php code */ + 'autoload' => array('/third_party', '/lib'), )); + +define('ASSET_ROOT', PHP_ROOT . '/assets'); -- cgit v1.2.3-freya