tinyauth-web/config.example.php

29 lines
1,020 B
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',
// Settings, backups and other writable state. Keep it outside public/.
'data_dir' => dirname(__DIR__) . '/data',
];