Browse Source

chore(config): remove obsolete runtime globals

softword 2 months ago
parent
commit
ad15286ea2
2 changed files with 7 additions and 14 deletions
  1. 0 14
      cfg/config.ini.example
  2. 7 0
      specs/configuration/spec.md

+ 0 - 14
cfg/config.ini.example

@@ -1,5 +1,4 @@
 [globals]
-VERSION=1.8.0
 AUTOLOAD="src/"
 CACHE = TRUE
 UI=ui/frontend/
@@ -10,16 +9,3 @@ JAR.expire={{time()+31536000}}
 DSN="mysql:host=<DATABASE_HOST>;port=<DATABASE_PORT>;dbname=<DATABASE_NAME>"
 dbuser="<DATABASE_USER>"
 dbpass="<DATABASE_PASSWORD>"
-MAX_RETRY_FOR_FAULT=10
-DEV=true
-AGGREGATE_TIMEOUT=500
-BLINKOFF_COLOR=0
-
-; Path
-BASEURL=/phengine
-SITENAME=PHPEngine
-LOGO_CUSTOMER={{@BASEURL}}/assets/images/logo.png
-ICON_LOGOUT={{@BASEURL}}/assets/images/logout.png
-
-; Select which customer class enable
-CUSTOMERNAME=<CUSTOMER_NAME>

+ 7 - 0
specs/configuration/spec.md

@@ -14,6 +14,13 @@ The application loads F3 globals from a runtime configuration file and provides
 | `cfg/config.bin` | `base64(gzcompress(ini-text))` | Runtime configuration loaded by `index.php`. |
 | `cfg/config.bin.old` | Previous `config.bin` bytes | Single backup created before an administrator save. |
 
+## Runtime Globals
+
+| Globals | Purpose |
+|---|---|
+| `AUTOLOAD`, `CACHE`, `UI`, `DEBUG`, `ENCODING`, `HIGHLIGHT`, `JAR.expire` | Fat-Free Framework runtime settings. |
+| `DSN`, `dbuser`, `dbpass` | MySQL connection settings consumed by `Core\System\System`. |
+
 ## Business Rules
 - Startup must validate PHP 8.5+, require `cfg/config.bin`, decode it to a temporary file, apply F3 configuration, then remove the temporary file.
 - `Encrypt()`/`Decrypt()` provide reversible base64+gzip encoding, not secrecy. Treat every configuration artifact as sensitive because it can contain credentials.