diff --git a/config.example.php b/config.example.php index 752465b..ebd3c45 100644 --- a/config.example.php +++ b/config.example.php @@ -24,6 +24,23 @@ return [ // Full path to systemctl. Must match the path in sudoers. 'systemctl' => '/usr/bin/systemctl', + // Variables shown in the closed "Core settings" section (install-level, rarely changed). + // Patterns use * wildcards. Remove this line to use the built-in default list (see src/lib.php). + 'core_keys' => [ + 'TINYAUTH_APPURL', + 'TINYAUTH_SERVER_*', + 'TINYAUTH_AUTH_SECURECOOKIE', + 'TINYAUTH_AUTH_SUBDOMAINSENABLED', + 'TINYAUTH_AUTH_TRUSTEDPROXIES', + 'TINYAUTH_ANALYTICS_*', + 'TINYAUTH_LDAP_*', + 'TINYAUTH_OIDC_PRIVATEKEYPATH', + 'TINYAUTH_OIDC_PUBLICKEYPATH', + 'TINYAUTH_DATABASE_*', + 'TINYAUTH_LOG_*', + 'TINYAUTH_UI_*', + ], + // Settings, backups and other writable state. Keep it outside public/. 'data_dir' => dirname(__DIR__) . '/data', ]; diff --git a/public/assets/style.css b/public/assets/style.css index 0e8e21f..a5cc930 100644 --- a/public/assets/style.css +++ b/public/assets/style.css @@ -578,3 +578,10 @@ dialog.modal code { dialog.modal .table-wrap { overflow-x: visible; } dialog.modal .dup-choice label { white-space: nowrap; } + +/* Core settings group inside the config card */ +.core-group { margin: 0.5rem 0 1rem; } +.core-group > summary { padding: 0.5rem 0; border-bottom: 1px solid var(--border); } +.core-group > summary h3 { margin: 0; font-size: 0.95rem; } +.core-group > .muted { margin: 0.8rem 0 0.4rem; font-size: 0.9rem; } +.group-title { margin: 1rem 0 0.2rem; font-size: 0.95rem; } diff --git a/public/index.php b/public/index.php index 61f8b08..d56512a 100644 --- a/public/index.php +++ b/public/index.php @@ -180,30 +180,28 @@ if (!$envReadable) { echo '