1# -- 2# Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ 3# -- 4# This software comes with ABSOLUTELY NO WARRANTY. For details, see 5# the enclosed file COPYING for license information (GPL). If you 6# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt. 7# -- 8# Note: 9# 10# -->> Most OTRS configuration should be done via the OTRS web interface 11# and the SysConfig. Only for some configuration, such as database 12# credentials and customer data source changes, you should edit this 13# file. For changes do customer data sources you can copy the definitions 14# from Kernel/Config/Defaults.pm and paste them in this file. 15# Config.pm will not be overwritten when updating OTRS. 16# -- 17 18package Kernel::Config; 19 20use strict; 21use warnings; 22use utf8; 23 24sub Load { 25 my $Self = shift; 26 27 # ---------------------------------------------------- # 28 # database settings # 29 # ---------------------------------------------------- # 30 31 # The database host 32 $Self->{DatabaseHost} = '127.0.0.1'; 33 34 # The database name 35 $Self->{Database} = 'otrs'; 36 37 # The database user 38 $Self->{DatabaseUser} = 'otrs'; 39 40 # The password of database user. You also can use bin/otrs.Console.pl Maint::Database::PasswordCrypt 41 # for crypted passwords 42 $Self->{DatabasePw} = 'some-pass'; 43 44 # The database DSN for MySQL ==> more: "perldoc DBD::mysql" 45 $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};"; 46 47 # The database DSN for PostgreSQL ==> more: "perldoc DBD::Pg" 48 # if you want to use a local socket connection 49# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};"; 50 # if you want to use a TCP/IP connection 51# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};"; 52 53 # The database DSN for Microsoft SQL Server - only supported if OTRS is 54 # installed on Windows as well 55# $Self->{DatabaseDSN} = "DBI:ODBC:driver={SQL Server};Database=$Self->{Database};Server=$Self->{DatabaseHost},1433"; 56 57 # The database DSN for Oracle ==> more: "perldoc DBD::oracle" 58# $Self->{DatabaseDSN} = "DBI:Oracle://$Self->{DatabaseHost}:1521/$Self->{Database}"; 59# 60# $ENV{ORACLE_HOME} = '/path/to/your/oracle'; 61# $ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS'; 62# $ENV{NLS_LANG} = 'AMERICAN_AMERICA.AL32UTF8'; 63 64 # ---------------------------------------------------- # 65 # fs root directory 66 # ---------------------------------------------------- # 67 $Self->{Home} = '/opt/otrs'; 68 69 # ---------------------------------------------------- # 70 # insert your own config settings "here" # 71 # config settings taken from Kernel/Config/Defaults.pm # 72 # ---------------------------------------------------- # 73 # $Self->{SessionUseCookie} = 0; 74 # $Self->{CheckMXRecord} = 0; 75 76 # ---------------------------------------------------- # 77 78 # ---------------------------------------------------- # 79 # data inserted by installer # 80 # ---------------------------------------------------- # 81 # $DIBI$ 82 83 # ---------------------------------------------------- # 84 # ---------------------------------------------------- # 85 # # 86 # end of your own config options!!! # 87 # # 88 # ---------------------------------------------------- # 89 # ---------------------------------------------------- # 90 91 return 1; 92} 93 94# ---------------------------------------------------- # 95# needed system stuff (don't edit this) # 96# ---------------------------------------------------- # 97 98use Kernel::Config::Defaults; # import Translatable() 99use parent qw(Kernel::Config::Defaults); 100 101# -----------------------------------------------------# 102 1031; 104