init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
return [
|
||||
'session' => [
|
||||
'id' => '',
|
||||
// SESSION_ID的提交变量,解决flash上传跨域
|
||||
//'var_session_id' => 'ses',
|
||||
// SESSION 前缀
|
||||
'prefix' => 'think',
|
||||
'path' => TEMP_PATH,
|
||||
//'path' => '/tmp/session/',
|
||||
// 驱动方式 支持redis memcache memcached
|
||||
//'type' => 'redis',
|
||||
//'host' => '127.0.0.1',
|
||||
//'port' => 6379,
|
||||
//'password' => '',
|
||||
// 是否自动开启 SESSION
|
||||
'auto_start' => true,
|
||||
'expire'=>60*60*24*365,//过期时间
|
||||
|
||||
],
|
||||
|
||||
'session_life_time' => 60*30,
|
||||
// +----------------------------------------------------------------------
|
||||
// | Cookie设置
|
||||
// +----------------------------------------------------------------------
|
||||
'cookie' => [
|
||||
// cookie 名称前缀
|
||||
'prefix' => '',
|
||||
// cookie 保存时间
|
||||
//'expire' => 60*60*24*7,
|
||||
// cookie 保存路径
|
||||
//'path' => '/tmp/session/',
|
||||
// cookie 有效域名
|
||||
'domain' => '',
|
||||
// cookie 启用安全传输
|
||||
'secure' => false,
|
||||
// httponly设置
|
||||
'httponly' => '',
|
||||
// 是否使用 setcookie
|
||||
'setcookie' => true,
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user