|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * This is an example configuration of SimpleSAMLphp Perun interface and additional features. |
| 5 | + * Copy this file to default config directory and edit the properties. |
| 6 | + * |
| 7 | + * @author Pavel Vyskočil <vyskocilpavel@muni.cz> |
| 8 | + * @author Pavel Břoušek <brousek@ics.muni.cz> |
| 9 | + */ |
| 10 | + |
| 11 | +$config = [ |
| 12 | + |
| 13 | + /* |
| 14 | + * Choose one of the following modes: PROXY, IDP, SP |
| 15 | + */ |
| 16 | + 'mode' => 'PROXY', |
| 17 | + |
| 18 | + /* |
| 19 | + * EntityId and name of IdP |
| 20 | + * REQUIRED FOR IDP MODE |
| 21 | + */ |
| 22 | + //'IDP' => [ |
| 23 | + // 'id' => '', |
| 24 | + // 'name' => '', |
| 25 | + //], |
| 26 | + |
| 27 | + /* |
| 28 | + * EntityId and name of SP |
| 29 | + * REQUIRED FOR SP MODE |
| 30 | + */ |
| 31 | + //'SP' => [ |
| 32 | + // 'id' => '', |
| 33 | + // 'name' => '', |
| 34 | + //], |
| 35 | + |
| 36 | + /* |
| 37 | + * Config for SimpleSAML\Database. |
| 38 | + * If not set, the global config is used. |
| 39 | + * @see SimpleSAML\Database |
| 40 | + */ |
| 41 | + 'store' => [ |
| 42 | + 'database.dsn' => 'mysql:host=localhost;port=3306;dbname=STATS;charset=utf8', |
| 43 | + 'database.username' => 'stats', |
| 44 | + 'database.password' => 'stats', |
| 45 | + |
| 46 | + /** |
| 47 | + * Configuration for SSL |
| 48 | + * If you want to use SSL, fill these values and uncomment the block of code |
| 49 | + */ |
| 50 | + //'database.driver_options' => [ |
| 51 | + // PDO::MYSQL_ATTR_SSL_KEY => '', // Path for the ssl key file |
| 52 | + // PDO::MYSQL_ATTR_SSL_CERT => '', // Path for the ssl cert file |
| 53 | + // PDO::MYSQL_ATTR_SSL_CA => '', // Path for the ssl ca file |
| 54 | + // PDO::MYSQL_ATTR_SSL_CAPATH => '', // Path for the ssl ca dir |
| 55 | + //], |
| 56 | + ], |
| 57 | + |
| 58 | + /** |
| 59 | + * Which attribute should be used as user ID. |
| 60 | + * @default uid |
| 61 | + */ |
| 62 | + //'userIdAttribute' => 'uid', |
| 63 | + |
| 64 | + /** |
| 65 | + * Database table names. |
| 66 | + * Default is to keep the name (as in `tables.sql`) |
| 67 | + */ |
| 68 | + 'tableNames' => [ |
| 69 | + //'statistics_sums' => 'statistics_sums', |
| 70 | + //'statistics_per_user' => 'statistics_per_user', |
| 71 | + //'statistics_idp' => 'statistics_idp', |
| 72 | + //'statistics_sp' => 'statistics_sp', |
| 73 | + ], |
| 74 | + |
| 75 | + /** |
| 76 | + * Authentication source name if authentication should be required. |
| 77 | + * Defaults to empty string. |
| 78 | + */ |
| 79 | + //'requireAuth.source' => 'default-sp', |
| 80 | + |
| 81 | + /** |
| 82 | + * For how many days should the detailed statistics be kept. Minimum is 31. |
| 83 | + */ |
| 84 | + //'keepPerUser' => 62, |
| 85 | +]; |
0 commit comments