170 lines
6.6 KiB
PHP
170 lines
6.6 KiB
PHP
<?php
|
|
//file ini khusus digunakan untuk configurasi variable termasuk restrict access
|
|
//[config]
|
|
|
|
//set time zone
|
|
$config['time_zone'] = "Asia/Jakarta";
|
|
|
|
//set server address
|
|
//server_address="https://hcportal.nabatisnack.co.id/src/api"
|
|
$config['server_api_opx'] = "https://app.nabatisnack.co.id/nabati-group/opx/api";
|
|
// $config['server_api_sap'] = "http://10.1.212.35:1080/sap/bc/zwspost?sap-client=300";
|
|
$config['server_api_sap'] = "http://sapeccprdappaws.nabatisnack.co.id:1080/sap/bc/zwspost?sap-client=300";
|
|
$config['server_address'] = "http://localhost/hcportal/src/api/";
|
|
$config['storage_name'] = 'hcportal_docs';
|
|
$config['base_storage'] = __SITE_PATH.'/'.$config['storage_name'];
|
|
$config['base_link_access_doc'] = __SITE_PATH.'/'.$config['storage_name'];
|
|
$config['base_storage'] = __SITE_PATH.'/'.$config['storage_name'];
|
|
$config['base_link_access_doc'] = __SITE_PATH.'/'.$config['storage_name'];
|
|
|
|
//set restrict mode
|
|
//default yes , jika yes maka yang bisa akses aplikasi hanya local saja,
|
|
//dan jika computer lain di izinkan mengakses musti ip nya harus di daftarkan di variable ipconfig
|
|
// jika tidak maka applikasi tidak bisa diakses
|
|
// hati - hati jika menggunakan nginx sebagai interface ke client, karna nginx dan apache koneksi menggunakan
|
|
// localhost. disini nginx sebagai proxy
|
|
$config['restrict'] = "no";
|
|
|
|
// jika restrict yes maka daftarkan ip address yang boleh menggunakan aplikasi ini dibawah
|
|
//ini
|
|
//ipconfig[]='200.200.40.125'
|
|
//ipconfig[]='192.168.1.30'
|
|
|
|
// available type main-testing-online, main-testing-local-network, main-production-local-network, main-production-online,main-production-localhost
|
|
$config['dbMainConType'] ='main-testing-local-network';
|
|
|
|
// $config['dbScadaType'] = 'scada';
|
|
// khusus untuk koneksi ke localhost
|
|
$config['host'] = '10.1.200.30';
|
|
$config['socket'] = '';
|
|
$config['user'] = 'hcportal';
|
|
$config['password'] = 'Hcp0rt4l!123&';
|
|
|
|
// $config['host'] = "10.1.200.218";
|
|
// $config['socket'] = "/var/lib/mysql/mysql.sock";
|
|
// $config['password'] = "Hcp0rt4l123";
|
|
// $config['user'] = "hcportal";
|
|
|
|
$config['ajax'] = "on";
|
|
|
|
// setup app key untuk jwt
|
|
|
|
$config['app_key'] = "lsAen7EWbSKc/BlG+peItsDnO1okyQnrQsXV22DoVN0gUj7G/CC2QlAuZj8Z9aa6iPO7xjZhMplqjAb98WJ1Wg==";
|
|
|
|
// setup algoritma untuk jwt
|
|
$config['algorithm'] = "HS512";
|
|
|
|
// setup servername untuk jwt
|
|
$config['serverName'] = "hcportal.nabatisnack.co.id";
|
|
|
|
//environment setup
|
|
// set developer / production. pada saat developer firephp aktif
|
|
// cara penggunaan nya :
|
|
// $this->registry->ab->info($content,$label);
|
|
// $this->registry->ab->log($content,$label);
|
|
// $this->registry->ab->warning($content,$label);
|
|
// $this->registry->ab->error($content,$label);
|
|
// $this->registry->ab->dump($content,$label);
|
|
// $this->registry->ab->table($content,$label);
|
|
// $this->registry->ab->trace($label);
|
|
|
|
|
|
// jika pada saat production atau siap di upload ke server, pastikan
|
|
// firephp di hapus pada composer.json dan set environment ke production
|
|
$config['environment'] = "prod";
|
|
$config['env'] = "developer";
|
|
|
|
// aktif log aplikasi dengan mengisi log 1 atau 0 untuk tidak aktif
|
|
$config['log'] = "1";
|
|
|
|
// berikan nilai off jika output buffering off di php ini dan berikan on jika output buffering on di php.ini
|
|
$config['ouput_buffering'] = "off";
|
|
|
|
|
|
//cara penggunaan firePHP
|
|
//1. pastikan dulu firebug nya sudah ada firephp
|
|
//dibawah beberapa contoh penggunaan firePHP
|
|
//$this->registry->fp->log($this->registry,'var_name');
|
|
//$this->registry->fp->info('test info','Info Message');
|
|
//$this->registry->fp->warn('test warn','Warn Message');
|
|
//$this->registry->fp->error('test error','Error Message');
|
|
//ini untuk fb (procedure API for firePHP)
|
|
//contoh
|
|
//fb::info($this->registry)
|
|
|
|
//set json path true or false, tru jika pada php versi belum support json, tetapi jika sudah support
|
|
//jsonpath tidak perlu diaktifkan
|
|
$config['jsonpath'] = false;
|
|
// $json = '{ ... }';
|
|
// $o = json_decode($json);
|
|
// $match1 = jsonPath($o, "$..author");
|
|
// $match2 = jsonPath($o, "$..author", array("resultType" => "PATH"));
|
|
// $res1 = $parser->encode($match1);
|
|
// $res2 = $parser->encode($match2);
|
|
|
|
// output
|
|
// res1:
|
|
// [ "Nigel Rees",
|
|
// "Evelyn Waugh",
|
|
// "Herman Melville",
|
|
// "J. R. R. Tolkien"
|
|
// ]
|
|
//res2:
|
|
//[ "$['store']['book'][0]['author']",
|
|
// "$['store']['book'][1]['author']",
|
|
// "$['store']['book'][2]['author']",
|
|
// "$['store']['book'][3]['author']"
|
|
|
|
// daftarkan semua class - class name yang tidak perlu di load dengan menggunakan auto load
|
|
// contoh class - class yang di load untuk plugin
|
|
$config['listclassnotautoload'] = array("PEAR_Error");
|
|
|
|
|
|
$config['smtp']="sandbox.smtp.mailtrap.io";
|
|
$config['smtp_debug']=0;
|
|
$config['smtp_debugtest']=false;
|
|
$config['smtp_auth']=true;
|
|
$config['port']=2525;
|
|
$config['ssl']='';
|
|
$config['mail_user']="6ea1196a0ae032";
|
|
$config['mail_password']="54dff4e103e4d9";
|
|
|
|
$config['edot_api_url'] = 'https://api-accounts.edot.id/';
|
|
$config['edot_client_key'] = '8d0295087403c7414b4e0ce3baaf7ff1';
|
|
$config['edot_client_secret'] = '99d6b4ea719fc1b7d7eac0b0';
|
|
$config['edot_client_app_name'] = 'HCProduction';
|
|
|
|
|
|
// $config['smtp'] = "mail.nabatisnack.co.id";
|
|
// $config['smtp_debug'] = 0;
|
|
// $config['smtp_debugtest'] = 1;
|
|
// $config['smtp_auth'] = true;
|
|
// $config['port'] = 587;
|
|
// $config['ssl'] = [
|
|
// 'verify_peer' => false,
|
|
// 'verify_peer_name' => false,
|
|
// 'allow_self_signed' => true
|
|
// ];
|
|
// $config['mail_user'] = "no-reply@nabatisnack.co.id";
|
|
// $config['mail_password'] = "NBT%QWfc62RP";
|
|
|
|
$config['whatsapp_endpoint']= "https://service-chat.qontak.com/api/open/v1/broadcasts/whatsapp/direct/";
|
|
$config['wa_auth_url']= "https://service-chat.qontak.com/oauth/token";
|
|
$config['channel_integration_id']="40f9ae05-a481-4b42-912d-feda75615903";
|
|
$config['wa_username']="james_sinaga@pinusmerahabadi.co.id";
|
|
$config['wa_password']="PMAoffice99_123";
|
|
$config['wa_grant_type']="password";
|
|
$config['wa_client_id']="RRrn6uIxalR_QaHFlcKOqbjHMG63elEdPTair9B9YdY";
|
|
$config['wa_client_secret']="Sa8IGIh_HpVK1ZLAF0iFf7jU760osaUNV659pBIZR00";
|
|
$config['wa_token_need_reload']=true; // ini di set true jika sudah 1 tahun ke depan saja
|
|
$config['wa_token_name']='qontak_token';
|
|
$config['whatsapp_sender']= "082123947499";
|
|
$config['whatsapp_api_token']="kV838ObYkux0kDvIUlLzG6Q33r4FBThg7EiL80kUD8Ta7Ub1LKyBFGezljpdDK6X";
|
|
$config['whatsapp_device_id']="6GZ69D";
|
|
|
|
$config['fcm_token'] = 'AAAApZfuw4I:APA91bE1CA3Mba_5mo0DQlfpRh50HrKygjWuPseHnXR517fP4ZITsWefMXkADbINNXhux494HoARcFe2gLybx0TEJvS6Igist7lerDW-JcRHuCBkCLAAYvfgwBwRFiPk3hRZTWrXpe8r';
|
|
$config['api_geo_tz_endpoint'] = 'http://10.5.1.8:49160';
|
|
$config['api_geo_tz_key'] = '34ca56dc6f424022a92e036357233310';
|
|
// $config['api_geo_tz_endpoint'] = 'https://api.ipgeolocation.io';
|
|
// $config['api_geo_tz_key'] = '34ca56dc6f424022a92e036357233310';
|