diff --git a/_conf/.env.example b/_conf/.env.example index 34b4da7..28b7969 100644 --- a/_conf/.env.example +++ b/_conf/.env.example @@ -1,5 +1,15 @@ +# Database configuration DB_HOST=localhost DB_PORT=3306 DB_NAME=my_webapp DB_USER=my_webapp -DB_PASSWORD=mypassword \ No newline at end of file +DB_PASSWORD=mypassword + +# Global website configuration +GLOBAL_SITE_NAME=My Web App +GLOBAL_SITE_URL=mywebapp.com +GLOBAL_SITE_IMG=img.mywebapp.com # Image if you using this + +# Global author configuration +GLOBAL_AUTHOR_NAME=Username +GLOBAL_AUTHOR_BIO_URL=https://google.com/?q=Kryscau \ No newline at end of file diff --git a/_conf/global.php b/_conf/global.php index a9bd5e5..cd012f8 100644 --- a/_conf/global.php +++ b/_conf/global.php @@ -1,14 +1,16 @@ "KVS.FYI", - 'main_domain' => "kvs.fyi", - 'imgs_domain' => "xbb.kvs.fyi" + 'name' => $env['GLOBAL_SITE_NAME'] ?? "My Web App", + 'main_domain' => $env['GLOBAL_SITE_URL'] ?? "localhost", + 'imgs_domain' => $env['GLOBAL_SITE_IMG'] ?? $env['GLOBAL_SITE_URL'] ?? "localhost" ]; $config['author'] = [ - 'name' => "Kryscau", - 'bio' => "https://e-z.bio/kryscau" + 'name' => $env['GLOBAL_AUTHOR_NAME'] ?? "Username", + 'bio' => $env['GLOBAL_AUTHOR_BIO_URL'] ?? "https://google.com/?q=Kryscau" ]; ?> \ No newline at end of file