This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
userzone:limesurvey_security_settings [2017/02/27 13:32] Matijs created |
userzone:limesurvey_security_settings [2020/03/12 12:06] (current) |
||
---|---|---|---|
Line 30: | Line 30: | ||
return array( | return array( | ||
'components' => array( | 'components' => array( | ||
- | 'db' => array( | + | 'db' => array( |
- | 'connectionString' => 'mysql:host=localhost;port=3306;dbname=example_ls_db;', | + | 'connectionString' => 'mysql:host=localhost;port=3306;dbname=example_ls_db;', |
- | 'emulatePrepare' => true, | + | 'emulatePrepare' => true, |
- | 'username' => 'example-ls-db', | + | 'username' => 'example-ls-db', |
- | 'password' => '12345', | + | 'password' => '12345', |
- | 'charset' => 'utf8', | + | 'charset' => 'utf8', |
- | 'tablePrefix' => 'ls__', | + | 'tablePrefix' => 'ls__', |
- | ), | + | ), |
- | 'request' => array( | + | 'request' => array( |
- | 'enableCsrfValidation' => true, | + | 'enableCsrfValidation' => true, |
- | 'hostInfo' => 'https://www.example.com/', | + | 'hostInfo' => 'https://www.example.com/', |
- | 'csrfCookie' => array('domain' => 'www.example.com'), | + | 'csrfCookie' => array('domain' => 'www.example.com'), |
- | ), | + | ), |
- | 'session' => array ( | + | 'session' => array ( |
- | 'cookieParams' => array( | + | 'cookieParams' => array( |
- | 'secure' => true, // use SSL for cookies | + | 'secure' => true, // use SSL for cookies |
- | 'httponly' => true, // Cookies may not be used by other protocols - experimental | + | 'httponly' => true, // Cookies may not be used by other protocols - experimental |
- | 'domain' => 'www.example.com', | + | 'domain' => 'www.example.com', |
- | ), | + | |
- | ), | + | |
- | 'urlManager' => array( | + | |
- | 'urlFormat' => 'path', | + | |
- | 'rules' => array( | + | |
), | ), | ||
+ | ), | ||
+ | 'urlManager' => array( | ||
+ | 'urlFormat' => 'path', | ||
+ | 'rules' => array( | ||
+ | ), | ||
'showScriptName' => true, | 'showScriptName' => true, | ||
), | ), |