29 lines
1.4 KiB
PHP
Executable File
29 lines
1.4 KiB
PHP
Executable File
<?php
|
|
// phpmyadmin/config.user.inc.php jODGTMcNtzu3TjzOkr67iFdhf99ZAFtq
|
|
// $cfg['Servers'][1]['auth_type'] = 'cookie';
|
|
// $cfg['Servers'][1]['AllowRoot'] = true; // แนะนำใช้ user เฉพาะงานแทน root
|
|
// $cfg['PmaAbsoluteUri'] = ''; // ให้เดาอัตโนมัติ
|
|
// $cfg['UploadDir'] = '';
|
|
// $cfg['SaveDir'] = '';
|
|
// $cfg['ForceSSL'] = false; // Nginx ด้านหน้าทำ SSL แล้ว
|
|
// หมายเหตุ: Nginx ได้ส่ง X-Forwarded-Proto=https ให้แล้ว → ช่วยแก้ cookie warning
|
|
//ปรับแต่งเพิ่มเติม
|
|
$cfg['blowfish_secret'] = 'jODGTMcNtzu3TjzOkr67iFdhf99ZAFtq'; // ใช้สำหรับเข้ารหัส cookie
|
|
|
|
$cfg['Servers'][1]['auth_type'] = 'cookie';
|
|
$cfg['Servers'][1]['AllowRoot'] = true;
|
|
$cfg['PmaAbsoluteUri'] = 'https://dcs.mycloudnas.com/pma/';
|
|
|
|
$cfg['UploadDir'] = '';
|
|
$cfg['SaveDir'] = '';
|
|
$cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';
|
|
|
|
$cfg['ForceSSL'] = false;
|
|
|
|
// ยืดเวลา login
|
|
$cfg['LoginCookieValidity'] = 7200; // 2 ชั่วโมง
|
|
$cfg['LoginCookieStore'] = 1;
|
|
|
|
$cfg['CheckConfigurationPermissions'] = false;
|
|
$cfg['CookieSameSite'] = 'Strict';
|