46 lines
1.6 KiB
PHP
46 lines
1.6 KiB
PHP
<?php
|
|
// Copy to config.php and edit. config.php is gitignored because it holds the client secret.
|
|
|
|
return [
|
|
// Base URL of tinyauth, as the browser sees it.
|
|
'tinyauth_url' => 'https://auth.example.com',
|
|
|
|
// OIDC client registered in tinyauth (see README).
|
|
'client_id' => 'tinyauth-web',
|
|
'client_secret' => 'CHANGE_ME',
|
|
|
|
// Must match the trusted redirect URI of the OIDC client exactly.
|
|
'redirect_uri' => 'https://tinyauth-web.example.com/callback.php',
|
|
|
|
// Claim in the userinfo response that lists the user's groups.
|
|
'groups_claim' => 'groups',
|
|
|
|
// tinyauth's environment file (the one systemd loads with EnvironmentFile=).
|
|
'env_file' => '/etc/tinyauth/tinyauth.env',
|
|
|
|
// systemd unit name, without .service.
|
|
'service' => 'tinyauth',
|
|
|
|
// 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',
|
|
];
|