boka3/config.php.example
Erik Thuning 45f80a0855 Moved entitlement handling into the application.
Any user who can log in via SSO but doesn't have one of the required
entitlements will only ever see a listing of their own loans.
2024-02-29 15:44:19 +01:00

47 lines
1.2 KiB
Plaintext

<?php
# Database info
$db_host = 'dbserver';
$db_user = 'dbname';
$db_pass = 'dbpassword';
$db_name = 'dbuser';
# Authentication
# Users must have one of these entitlements in order to be able to
# access the site. Users without any of the required entitlements
# get redirected to their own loan listing page.
$required_entitlements = array(
'urn:mace:swami.se:gmai:some-entitlement',
);
# Site language
$language = 'en';
# Site name
$name = 'My product tracker';
# Email subject prefix
# Will be prepended without change, so should probably end with a space
$email_subject_prefix = "System name: ";
# Address to use as the sender for reminder emails
$sender = 'noreply@example.com';
# Address to send cron error messages to
$error_address = 'root@example.com';
# Discard notifications
# If this is set to an email address, the system will send a notification
# there each time a product is discarded.
#$discard_notify = 'inventory-tracking@example.com';
$discard_notify = false;
# Directory to save attachments to
# Interpreted as absolute path if beginning with /,
# otherwise assumed to be relative to the application root.
# Must be writable by the web server.
# Does not need to be within the web root.
$files_dir = 'attachments';
?>