Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
#### Changed
- Remove unnecessary is_null()
- Use SimpleSAML\Database

#### Fixed
- Log info message about successful authentication only after successful authentication to SP
Expand All @@ -12,6 +13,9 @@ All notable changes to this project will be documented in this file.
- describe setup for modes PROXY/SP/IDP
- change array notation from `array()` to `[]`
- Read spName from $request only if present
- Remove unused indexes
- Optimize left outer join
- Don't double queries w/o days

## [v3.1.0]
#### Added
Expand Down
83 changes: 26 additions & 57 deletions config-templates/module_statisticsproxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,32 @@
'spName' => '',

/*
* Fill the serverName
*/
'serverName' => 'localhost',

/*
* If you want to use the default port, please comment option 'port'
*/
'port' => 3306,

/*
* Fill the user name
*/
'userName' => 'stats',

/*
* Fill the password
*/
'password' => 'stats',

/*
* Fill the database name
*/
'databaseName' => 'STATS',
* Fill config for SimpleSAML\Database.
* If not set, the global config is used.
* @see SimpleSAML\Database
*/
'store' => [
'database.dsn' => 'mysql:host=localhost;port=3306;dbname=STATS;charset=utf8',
'database.username' => 'stats',
'database.password' => 'stats',

/**
* Configuration for SSL
* If you want to use SSL you must filled this value and uncomment block of code
*/
/*
'database.driver_options' => [
// Path for the ssl key file
PDO::MYSQL_ATTR_SSL_KEY => '',
// Path for the ssl cert file
PDO::MYSQL_ATTR_SSL_CERT => '',
// Path for the ssl ca file
PDO::MYSQL_ATTR_SSL_CA => '',
// Path for the ssl ca dir
PDO::MYSQL_ATTR_SSL_CAPATH => '',
],
*/
],

/*
* Fill the table name for statistics
Expand All @@ -76,38 +79,4 @@
* Fill the table name for serviceProviders
*/
'serviceProvidersMapTableName' => 'serviceProvidersMap',

/*
* Fill true, if you want to use encryption, false if not.
*/
'encryption' => true / false,

/*
* The path name to the certificate authority file.
*
* If you use encryption, you must fill this option.
*/
'ssl_ca' => '/example/ca.pem',

/*
* The path name to the certificate file.
*
* If you use encryption, you must fill this option.
*/
'ssl_cert_path' => '/example/cert.pem',

/*
* The path name to the key file.
*
* If you use encryption, you must fill this option.
*/
'ssl_key_path' => '/example/key.pem',

/*
* The pathname to a directory that contains trusted SSL CA certificates in PEM format.
*
* If you use encryption, you must fill this option.
*/
'ssl_ca_path' => '/etc/ssl',

];
3 changes: 0 additions & 3 deletions config-templates/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ CREATE TABLE statistics (
count INT,
INDEX (sourceIdp),
INDEX (service),
INDEX (year),
INDEX (year,month),
INDEX (year,month,day),
PRIMARY KEY (year, month, day, sourceIdp, service)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Expand Down
Loading